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
footer li { | |
background: red; | |
} |
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
.foo span { color: purple; } | |
#bar { color: orange; } | |
.foo { color: green; } |
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
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials |
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 s = document.createElement('script'); | |
s.setAttribute('type', 'text/javascript'); | |
s.setAttribute('src', 'https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js'); | |
var head = document.getElementsByTagName('head')[0]; | |
if (head) { | |
head.appendChild(s); | |
} else { | |
document.body.appendChild(s); | |
} |
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
$(document).ready( function () { | |
if (window.location.hash === '#mySampleHash') { | |
$('#section-1').fadeIn(); | |
// Change active nav item (optional) | |
$('#main_tab_my-sample-item').addClass('active'); | |
// Change the page title to make it appear more like a different page | |
document.title = "My Sample Title"; | |
} else { |
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 ($, SampleNamespace, undefined) { | |
SampleNamespace.publicMethod = function () { | |
// Do something public | |
}; | |
var privateMethod = function () { | |
// Do something private | |
}; | |
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
<!-- Current Code on lines 30-32 --> | |
{% for category in gallery_settings.categories %} | |
<a href="#" data-cat="{{ category.title | handelize }}"><li>{{ category.title }}</li></a> | |
{% endfor %} | |
<!-- First category only --> | |
{% for category in gallery_settings.categories limit:1 %} | |
<a href="#" data-cat="{{ category.title | handelize }}"><li>{{ category.title }}</li></a> | |
{% endfor %} |
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
{% plugin rawtext desktop_redirect_url %} | |
<script type="text/javascript"> | |
if (!document.body.className.match('page_preview')) { | |
// Redirects as soon as possible | |
setInterval( function () { | |
top.location.replace({{ desktop_redirect_url | json }}); | |
},250); | |
} | |
</script> |
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
{% plugin rawtext fanpage_url %} | |
<script type="text/javascript"> | |
if (!document.body.className.match('page_preview')) { | |
var redir; | |
if (window.location.search) { | |
// Triggered if there's already a social referrer being tracked | |
var ref_search = window.location.search; | |
var ref = ref_search.split('='); | |
var ref_id = ref[1]; |
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
<style> | |
#tmp-notify { | |
position:absolute; | |
margin:20px; | |
left:0; | |
top:0; | |
right:0; | |
z-index:9999; | |
} |