Technical specifications
Technical specifications
Accepted languages are
HTML
,CSS
andJavaScript
(includingjQuery
).Use of
PHP
orASP
code is not supported.Character encoding:
UTF-8
There must be a single
HTML
file.The HTML file must be named
index.html
.Your final
HTML
code must not contain references to non-existent files. Leave only the files (images, fonts, etc.) used in the code for your ad.
All special characters are prohibited in the naming of your files. Be sure to remove them if present.
Only the following characters are accepted in your file nomenclature:
A-Z
a-z
0-9
_
-
Special characters in URLs must be encoded using a Uniform Resource Identifier (URI).
The La Presse+ application is case-sensitive. Be sure to maintain the same formatting between file names and their references in the
HTML
file.
Please note: Spaces are not allowed in the naming of your files or URLs.
No external file, link, or script is authorized (including the jQuery library).
Exemple :<script src='//code.jquery.com/jquery-3.7.1.min.js'></script>
The libraries used must be located in your assets folder.
Exemple :<script src='assets/script.js'></script>
No script or JavaScript call must be positioned after the closing tag
</body>
.Never use the property
visibility: hidden;
to hide audio content (whether in CSS or JS).The final ad folder must contain all files included in the code for your ad.
If you use the jQuery library, we recommend downloading the latest version from jQuery →.
A copy of the library must be included in the final ad folder.
Using
jQuery.noConflict()
is not recommended unless you are using multiple libraries that use the$
symbol.
The following syntax must be used to open links in your ad:
<a href='https://www.youraddress.ca'></a>
The following codes will not be accepted (if used, they will be ignored by the application and your ad cannot be activated):
Unauthorized code :window.open('https://www.youraddress.ca', '_self'); window.parent.location.href = 'https://www.youraddress.ca'; window.location = 'https://www.youraddress.ca';
The
target="_blank"
attribute is not supported in the application. Please remove them from your<a>
tags before the delivery of your material.When using the Send Email → button, be sure to use the
mailto
parameter in yourhref
attribute.
For example:<a href="mailto:youraddress@yourdomain.ca">