Radio Show Header Cover Update JS

// Get Showdata from Session Storage function loadShowDataFirst() { // Get Json Show Data let json = sessionStorage.getItem(“currentshowData”); // Get Showdata from Session Storage let obj = JSON.parse(json); console.log = obj.coverURL; // Accessing Header Objects Meta Data document.getElementById(“currentRadioShow”).src = RadioShowImg;…Continue reading

Tilt Effect JS

elem = document.getElementsByClassName(‘uk-background-norepeat’); window.addEventListener(‘deviceorientation’, function(e){ handler(e); }, false); function handler(e){ var width = window.outerWidth, rot = e.gamma / 1800, left = ( width / 2 ) * rot; elem[0].style.backgroundPosition = left + ‘px’; }Continue reading

Buttons Material Design JS

‘use strict’; var rippleEffect = function (e) { var target = e.target; var rect = target.getBoundingClientRect(); var ripple = target.querySelector(‘.ripple’); jQuery(ripple).remove(); ripple = document.createElement(‘span’); ripple.className = ‘ripple’; ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + ‘px’; target.appendChild(ripple); var top = e.pageY…Continue reading

Form Labels CSS

:root { –transitionDuration: 250ms; –transitionTF: cubic-bezier(0.145, 0.045, 0.355, 1); /* floated labels */ –inputPaddingV: var(–gutterMd); –inputPaddingH: var(–gutterLg); –inputFontSize: var(–fontSizeLg); –inputLineHeight: var(–lineHeightMd); –labelScaleFactor: 0.2; –labelDefaultPosY: 50%; –labelTransformedPosY: calc( (var(–labelDefaultPosY)) – (var(–inputPaddingV) * var(–labelScaleFactor)) – (var(–inputFontSize) * var(–inputLineHeight)) ); –inputTransitionDuration: var(–transitionDuration); –inputTransitionTF:…Continue reading