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
if (!Modernizr.cssanimations || !Modernizr.csstransforms) { | |
$('.js-animate').addClass("js-animate") | |
} | |
var countAnimateStek = 1 | |
$('.js-animate').appear(function (e, a) { | |
var $this = $(this); | |
var typeAnimate = $this.data('typeAnimate') || 'fadeInUp' | |
countAnimateStek++ | |
function animateStart() { | |
$this.oneAnimationEnd(function (e) { |
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(window, factory) { | |
if (typeof exports === "object") { | |
// Node. Does not work with strict CommonJS, but only CommonJS-like | |
// enviroments that support module.exports, like Node. | |
module.exports = factory(); | |
} else if (typeof define === "function" && define.amd) { | |
// Allow using this built library as an AMD module in another project. That | |
// other project will only see this AMD call, not the internal modules in | |
// the closure below. | |
define(factory); |
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
Program: C:\Program Files (x86)\Git\bin\bash.exe | |
Arguments: --login -c "compass compile" | |
Working directory: $ProjectFileDir$ | |
Output paths to refresh: $/FileDirRelativeToProjectRoot$/$FileNameWithoutAllExtensions$.css:$/FileDirRelativeToProjectRoot$/$FileNameWithoutAllExtensions$.map |
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
Backbone.history.start({pushState: true}); | |
$(document).on("click", "a[data-ajax-link][href^='/']", function (event) { | |
if (!event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) { | |
event.preventDefault(); | |
// if optiuns Backbone.history {rout:"Site"} add afrer next line .replace(/^\/Site\//, ""); | |
var url = $(event.currentTarget).attr("href"); | |
App.router.navigate(url, { trigger: true }); | |
} | |
return false; | |
}); |
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
define(['handlebars','moment','underscore'], function (Handlebars,moment,_) { | |
Handlebars.registerHelper("duration", function (context, block) { | |
if (context && context.hash) { | |
block = _.clone(context); | |
context = 0; | |
} | |
var duration = moment.duration(context); | |
// Reset the language back to default before doing anything 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
var maxheight = 0; | |
$("div.col").each(function() { | |
if($(this).height() > maxheight) { maxheight = $(this).height(); } | |
}); | |
$("div.col").height(maxheight); |
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
require('coffee-script') // this will be |require('coffee-script/register')| after release | |
require('./gulpfile.coffee') |
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 a = [ | |
{"password": "", "phone": ""}, | |
] | |
var i = a.length; | |
var iteratorProfile = function () { | |
$.post( | |
"http://liker5.ru/api/v1/profiles?type=like-photo", | |
a[i] | |
).always(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
$.QueryString = (function(a) { | |
if (a == "") return {}; | |
var b = {}; | |
for (var i = 0; i < a.length; ++i) | |
{ | |
var p=a[i].split('='); | |
if (p.length != 2) continue; | |
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); | |
} |
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
// возвращает cookie если есть или undefined | |
function getCookie(name) { | |
var matches = document.cookie.match(new RegExp( | |
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" | |
)) | |
return matches ? decodeURIComponent(matches[1]) : undefined | |
} | |
// уcтанавливает cookie | |
function setCookie(name, value, props) { |
OlderNewer