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
/* User settings */ | |
var time = 500; // time delay, 500 work fine | |
var type = 'deactivated'; // type of user: deactivated or all | |
/* do not change */ | |
var | |
fans = document.querySelectorAll('.fans_fan_row'), | |
fans_length = fans.length, | |
fans_bl = [], |
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
/** | |
* Call jquery trigger event after initialize Magento public methods | |
*/ | |
(function () { | |
/** | |
* RegionUpdater | |
*/ |
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
module.exports = function (grunt) { | |
//описываем конфигурацию | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), //подгружаем package.json, чтобы использовать его данные | |
/*jshint: { // описываем как будет проверять наш код - jsHint | |
options: { | |
curly: true, | |
eqeqeq: true, | |
immed: true, |
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
{ | |
"name": "terminal-ukraine", | |
"version": "1.0.0", | |
"description": "project description", | |
"main": "Gruntfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"devDependencies": { | |
"grunt": "~0.4.2", |
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() { | |
'use strict'; | |
var VKPhotoDescriptionUpdater = { | |
isDone: false, | |
isCaptcha: false, | |
maxPhotos: null, | |
isReplace: false, | |
isAddToEnd: false, | |
text: null, | |
textToReplace: null, |
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() { | |
'use strict'; | |
var VKCleaner = { | |
init: function() { | |
this.config = { | |
'userClass' : '#gedit_users_members .gedit_user', | |
'photoClass' : '.gedit_user_img', | |
'buttonsClass' : '.gedit_user_action' | |
}; |
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
/* Hide only visually, but have it available for screenreaders: h5bp.com/v */ | |
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } | |
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */ | |
.visuallyhidden.focusable:active, | |
.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; } |
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
/** | |
* Content Parser | |
*/ | |
function parseContent2() { | |
var imgPath = 'http://images.menswearhouse.com/is/image/JosBank/'; | |
var $content = $('.additionalInfos').clone(); | |
var output = '<div class="contentSectionArea" dir="ltr" id="main"><div><div class="landingPageContent">{{content}}</div></div></div>'; |
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
/** | |
* Content Parser | |
* @param imageName - name from scene 7 | |
*/ | |
function parseContent(imageName) { | |
var imgPath = 'http://images.menswearhouse.com/is/image/JosBank/'; | |
var $content = $('.content.static_content').clone(); | |
var $nav = $('<p class="ea-back"><img src="http://images.menswearhouse.com/is/image/JosBank/Expert_Advice_logoArticle" width="94" height="30" alt="Expert Advice"/> <span aria-hidden="true"> | «</span><a href="ContentView?langId=-1&storeId=11001&catalogId=10050&contentKey=EXPERT_ADVICE">Back To Articles</a></p>'); | |
var center; |
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 downloadURI(uri, name) | |
{ | |
var link = document.createElement("a"); | |
link.download = name; | |
link.href = uri; | |
link.click(); | |
} |
NewerOlder