This file contains 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 popup_full_screen_ads(url) | |
{ | |
params = 'width='+screen.width; | |
params += ', height='+screen.height; | |
params += ', top=0, left=0' | |
params += ', fullscreen=yes'; | |
newwin=window.open(url,'windowname4', params); | |
if (window.focus) {newwin.focus()} | |
return false; |
This file contains 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 today = req.body.today; | |
var runDate = (today == '' || today == null ? new Date() : new Date(today)); | |
var tommorrow = new Date(runDate); | |
tommorrow.setDate(tommorrow.getDate() + 1); | |
console.log(); | |
console.log('start '+dateFormat(runDate, "yyyy-mm-dd")); | |
console.log('end '+dateFormat(tommorrow, "yyyy-mm-dd")); | |
Event.find({ |
This file contains 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
body.modal-open #wrap { | |
-webkit-filter: blur(7px); | |
-moz-filter: blur(15px); | |
-o-filter: blur(15px); | |
-ms-filter: blur(15px); | |
filter: blur(15px); | |
} | |
.modal-backdrop { | |
background: #f7f7f7; | |
} |
This file contains 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
.in { | |
background: rgba(0, 0, 0, 0.8); | |
} |
This file contains 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
// Opera 8.0+ | |
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
// Firefox 1.0+ | |
var isFirefox = typeof InstallTrigger !== 'undefined'; | |
// Safari 3.0+ "[object HTMLElementConstructor]" | |
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification); | |
// Internet Explorer 6-11 |
This file contains 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 mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
mongoose.Promise = Promise; | |
mongoose.connect('mongodb://127.0.0.1:27017/local'); | |
var clickSchema = new Schema({ | |
ip: { type: String, default: '' }, | |
hostname: { type: String, default: '' }, | |
country: { type: String, default: '' }, |
This file contains 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
.navbar { | |
position:fixed; | |
top:0px; | |
width:100%; | |
height:75px; | |
background-color:#fff; | |
color: #FFFFFF; | |
z-index:9999; | |
display: none; | |
border: none; |
This file contains 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.querySelector("body").addEventListener('click', function(e) { | |
var a = e.target.closest('a'); | |
if (a !== null) { | |
console.log(a); | |
} | |
}, false); |
This file contains 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.querySelector("body").style.WebkitFilter = 'blur(4px)'; | |
document.querySelector("body").style.filter= 'blur(4px)'; |
This file contains 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 postAjax(url, data, success) { | |
var params = typeof data == 'string' ? data : Object.keys(data).map( | |
function(k){ return encodeURIComponent(k) + '=' + encodeURIComponent(data[k]) } | |
).join('&'); | |
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); | |
xhr.open('POST', url); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState>3 && xhr.status==200) { success(xhr.responseText); } | |
}; |
OlderNewer