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
<iscomment>Debugging window: Delete for staging</iscomment> | |
<isscript> | |
var testing = "Debugging..."; | |
var log = pdict.Log; | |
var scriptLog = pdict.ScriptLog; | |
</isscript> | |
<div id="mrdebug" style="min-height: 100px; width: 100%; background-color: #BADA55; margin: 0 auto;"> | |
<p>testing : ${testing} </p> | |
<p> : ${}</p> | |
</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
<img src="${URLUtils.staticURL(URLUtils.CONTEXT_LIBRARY, null, 'ui/')}white-close-icon.png"/> |
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
<isinclude url="${URLUtil.url('Product-IncludeLastVisited', 'cid','about-us')}" /> |
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
${dw.system.Site.getCurrent().getCustomPreferenceValue('enableSocialNetworkingLinks')} |
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
// Attach keypress handler to input box. Submit form if user presses 'enter' key. | |
jQuery('.email').keypress( function(e) { | |
if(e.which == 13) { | |
jQuery('#sendBtn').click(); | |
return false; | |
} | |
return 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
function isValidEmailAddress(emailAddress) { | |
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i); | |
return pattern.test(emailAddress); | |
} |
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
<isif condition="${dw.system.Site.getCurrent().getID() == 'UK'}"> | |
</isif> | |
<iscomment>Or use ${request.getLocale()}</iscomment> |
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
${Resource.msg('newcheckout.cancel','checkout',null)} | |
//OR if you want to pass a value to the string | |
${Resource.msgf('checkout.missing','checkout',null, field.name)} |
OlderNewer