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
$deals-header-height: 48px; | |
.deals-view-page { | |
padding-top: $nav-height + $deals-header-height; | |
} | |
// Page Header | |
.deals-header { | |
@include transition(transform 150ms ease); | |
width: 100%; | |
height: $deals-header-height; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example</title> | |
</head> | |
<body> | |
<output id="op">Smart Truncate:<br></output> | |
</body> |
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
<!-- This would go within the {% if sweeps_settings.completed %} section --> | |
<div id="ref-id" data-id="{{ sweeps_settings.referral_id }}"></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
var storiesToJSON = function (callback) { | |
var data = { "stories": [] }; | |
var storiesAnswers = $('.stories_recent_activity li'); | |
storiesAnswers.each( function (i, answer) { | |
var story = {}; | |
story.image_url = $(this).find('.stories_user_image img').attr('src'); | |
story.user_name = $(this).find('.stories_answer a').text(); | |
story.user_link = $(this).find('.stories_answer a').attr('href'); |
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
// Hide all stories except for the first X | |
// (0-based index - e.g. subtract 1 from the number of answers you want to show) | |
$('.stories_recent_activity ol li:gt(X)').hide(); | |
// Examples | |
// Show only 1 item | |
$(document).ready( function () { | |
$('.stories_recent_activity ol li:gt(0)').hide(); | |
}); |
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 button_1_label %} | |
{% plugin rawtext button_1_link %} | |
{% plugin rawtext button_2_label %} | |
{% plugin rawtext button_2_link %} | |
{% plugin rawtext button_3_label %} | |
{% plugin rawtext button_3_link %} | |
{% plugin rawtext button_4_label %} | |
{% plugin rawtext button_4_link %} | |
<style type="text/css"> | |
html { |
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 page_url %} | |
<script type="text/javascript"> | |
if (!document.body.className.match('page_preview')) { | |
// Redirects as soon as possible | |
setInterval( function () { | |
top.location.replace({{ page_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
#main { | |
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
li:nth-child(3n + 1) { | |
background: red; | |
} |
NewerOlder