Skip to content

Instantly share code, notes, and snippets.

@alstrom
alstrom / Hide elements
Created September 30, 2013 06:51
Hide elements
display:none;
@alstrom
alstrom / new_gist_file.json
Created October 1, 2013 06:33
ClickTag Manifest til HTML 5 banner
{
"version": "1.0",
"title": "Visit Sweden - Sydsverige",
"description": "",
"width" : "460",
"height": "500",
"events": {
@alstrom
alstrom / Curser pointer
Created October 1, 2013 06:36
Curser pointer
#click1{ cursor: pointer; }
@alstrom
alstrom / new_gist_file.js
Created October 1, 2013 06:38
ClickTag script til HTML5 banner
<script src="http://s1.adform.net/banners/scripts/rmb/Adform.DHTML.js"></script>
<script>
var banner = document.getElementById('click1');
clickTAGvalue = dhtml.getVar('clickTAG', 'http://www.example.com'); //banner will receive clickTAG value - if not defined, banner will land to example.com
landingpagetarget = dhtml.getVar('landingPageTarget', '_blank'); //landingPageTarget variable enables to change target from Adform system.
banner.onclick = function() {
window.open(clickTAGvalue,landingpagetarget); //when banner is clicked it will open new window directing to clickTAG value
}
@alstrom
alstrom / new_gist_file
Created October 1, 2013 06:45
ClickTag
on(release) { getURL(_root.clickTAG, "_blank"); }
if(i==null){ i=1; } if(i>1){ stop(); }else{ trace(i); i++; }
@alstrom
alstrom / new_gist_file.js
Created December 9, 2013 12:49
'Titillium Web', sans-serif Font in edge
<script type="text/javascript"> WebFontConfig = { google: { families: [ 'Titillium+Web:400,900,700,300,200,600:latin' ] } }; (function() { var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })(); </script>