wamlogo web accessibility mode` const svgDataUrl = `data:image/svg+xml;base64,${btoa(svg)}` const dot = ` Untitled-2 ` const dotDataUrl = `data:image/svg+xml;base64,${btoa(dot)}` console.log('%c ', `background-image: url(${ svgDataUrl });padding-bottom: 100px;padding-left: 200px;width:300px;margin: 0 20px;background-size: contain;background-position: center center;background-repeat: no-repeat;`) console.log('%c ', `background-image: url(${ dotDataUrl });padding-bottom: 5px;padding-left: 5px;width:5px;margin: 0 0px;background-size: contain;background-position: center center;background-repeat: no-repeat;`, 'WAM Starting'); // START dis allow framing this site to stop troll lawyers if(top!=self){ top.location.replace(document.location); alert("For security reasons, framing is not allowed; click OK to remove the frames.") } // END frame stop // turn on and off WAM by cast attributes $( ".wamswitch" ).click(function(e) { console.log('clicked it'); e.preventDefault(); var wamstate = $( ".wamstatus" ).text(); console.log('%c ', `background-image: url(${ dotDataUrl });padding-bottom: 5px;padding-left: 5px;width:5px;margin: 0 0px;background-size: contain;background-position: center center;background-repeat: no-repeat;`, 'visual WAM is: ' + wamstate); if ( wamstate == 'off'){ //$( ".wamstatus" ).text('On'); $.ajax({ type: "POST", url: '/cart.js', data: {"attributes[accessibilitymode]": true}, success: function(d){ console.log('%c ', `background-image: url(${ dotDataUrl });padding-bottom: 5px;padding-left: 5px;width:5px;margin: 0 0px;background-size: contain;background-position: center center;background-repeat: no-repeat;`, 'visual WAM is: on'); location.reload(); }, dataType: 'json' }); } else { //$( ".wamstatus" ).text('Off'); $.ajax({ type: "POST", url: '/cart.js', data: {"attributes[accessibilitymode]": false}, success: function(d){ console.log('%c ', `background-image: url(${ dotDataUrl });padding-bottom: 5px;padding-left: 5px;width:5px;margin: 0 0px;background-size: contain;background-position: center center;background-repeat: no-repeat;`, 'visual WAM is: off'); location.reload(); }, dataType: 'json' }); } });