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 fs = require('fs'); | |
var d3 = require('d3'); | |
var Twit = require('twit') | |
var T = new Twit({ | |
consumer_key: '', | |
consumer_secret: '', | |
access_token: '', | |
access_token_secret: '' | |
}); |
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 type="text/css" media="screen"> | |
#play-progress { | |
width: 910px; | |
margin-bottom: 20px; | |
background-color: #28AADE; | |
height: 36px; | |
position: relative; | |
border-radius: 20px; | |
} |
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
$('.ajaxForm').on('submit', function(e) { | |
var formId = $(this).attr('id'), | |
doAction = $(this).attr('action'); | |
$.post(doAction, $(this).serialize(), | |
function(data) { | |
$('#'+formId+'_result').html(data); | |
}); | |
e.preventDefault(); | |
}); |
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
.story-box { | |
z-index: auto; | |
box-shadow: rgb(153, 153, 153) 0px 0px 0px 0px; | |
-webkit-transform: matrix(1, 0, 0, 1, 0, 0); | |
-moz-transform: matrix(1, 0, 0, 1, 0, 0); | |
cursor: pointer; | |
margin-bottom:10px; | |
padding: 5px; | |
display: block; | |
min-height: 350px; |
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
$('.story-box').on('mouseenter', function(){ | |
$(this).addClass('story-box-up').find('.tcontents_title a').css('color', '#A80405'); | |
}).on('mouseleave', function(){ | |
$(this).removeClass('story-box-up').find('.tcontents_title a').css('color', 'black'); | |
}).on('click mousedown', function(){ | |
var permalink = $(this).find('.tcontents_title a').attr('href'); | |
window.location = permalink; | |
}); |
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
# the permalink var is an array created before this. it takes the permalink from each WordPress post as they load. | |
function commaSeparateNumber(val){ | |
while (/(\d+)(\d{3})/.test(val.toString())){ | |
val = val.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2'); | |
} | |
return val; | |
} | |
$(document).ready(function () { | |
var fb_likes = 0, |
NewerOlder