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() { | |
'use strict'; | |
var VKPhotoDescriptionUpdater = { | |
isDone: false, | |
isCaptcha: false, | |
maxPhotos: null, | |
isReplace: false, | |
isAddToEnd: false, | |
text: null, | |
textToReplace: null, |
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() { | |
'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 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 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 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
/** | |
* 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 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
/** | |
* 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 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 downloadURI(uri, name) | |
{ | |
var link = document.createElement("a"); | |
link.download = name; | |
link.href = uri; | |
link.click(); | |
} |
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
/** | |
* Css auto reload | |
* NOTE!!! remove on production | |
*/ | |
(function() { | |
'use strict'; | |
var CssReload = { | |
config: { | |
keyCode: 83 |
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 (typeof Object.create !== "function") { | |
Object.create = function (obj) { | |
function F() {} | |
F.prototype = obj; | |
return new F(); | |
}; | |
} | |
(function ($, window, document) { |
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
/** | |
* Call jquery trigger event after initialize Magento public methods | |
*/ | |
(function () { | |
/** | |
* RegionUpdater | |
*/ |
NewerOlder