This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* USE CASE WHEN WE HAVE 2 ADS IN ONE PAGE */ | |
<div class="ad1"> | |
<form data-dw="300" data-dh="90" data-dslid="300x60_1" data-tw="300" data-th="60" data-tslid="300x60_1" | |
data-mw="300" data-mh="60" data-nslid="300x600_1"></form> | |
</div> | |
<div class="ad2"> | |
<form data-dw="790" data-dh="90" data-dslid="790x90_1" data-tw="790" data-th="90" data-tslid="790x90_1" | |
data-mw="300" data-mh="60" data-nslid="300x60_2"></form> //important see 300x60_2 (_2 is ad position and is another the for other breakpoints) | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.lazy-image { | |
width: auto; | |
height: auto; | |
position: relative; | |
} | |
@-webkit-keyframes loaded { | |
0% { | |
opacity: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Someone tried to combine first and third rotator using css classes | |
// Because now featured rotator is now between first and third rotator looks broken. | |
// this is happening only on mobile | |
//first rotator | |
<div class="playlist-node"> | |
<div class="title">Title</div> | |
<div class="rotator" style="display: none!important"></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
'use strict'; | |
Drupal.behaviors.sweep = { | |
attach: function (context,settings) { | |
alert(Yo!); | |
} | |
}; | |
})(jQuery); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Person = function (first, last) { | |
this.firstName = first; | |
this.lastName = last; | |
}; | |
Object.defineProperty(Person, 'species', { | |
writable: false, | |
value: 'human' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Person = function (first, last) { | |
this.firstName = first; | |
this.lastName = last; | |
} | |
Object.defineProperty(Person, 'species', { | |
writable: false, | |
value: 'human' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var woman = new Person('Kate', 'Khowalski'); | |
woman.firstName; // 'Kate' | |
woman.lastName; // 'Khowalski' | |
woman.fullName; //'Kate Khowalski | |
woman.species; // human | |
/* | |
* Change firstName | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gigya Profile Module | |
* | |
* 'use strict'; | |
* // variables to be ignored by JSHint' | |
* | |
* define([optional dependencies], function(dependencies reference in the same order) { | |
* // You can return any type of objects, functions or variables | |
* return { | |
* foo: function() {...} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gigya Patch Module | |
* | |
* 'use strict'; | |
* // variables to be ignored by JSHint' | |
* | |
* define([optional dependencies], function(dependencies reference in the same order) { | |
* // You can return any type of objects, functions or variables | |
* return { | |
* foo: function() {...} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR SHARE BUTTON | |
<div class="social-share"> | |
<span>share</span> | |
<ul> | |
<li class="facebook"><a href="{{url for share}}">facebook</a></li> | |
<li class="twitter"><a href="{{url for share}}">twitter</a></li> | |
<li class="google"><a href="{{url for share}}">google</a></li> | |
<li class="pinterest"><a href="{{url for share}}">pinterest</a></li> | |
<li class="tumlbr"><a href="{{url for share}}">tumblr</a></A></li> |