Skip to content

Commit

Permalink
Update teller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dfralan authored Jul 25, 2023
1 parent e71463a commit b2a3267
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions teller.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function kiujdgrsghsss(){
#buttonFatherBrick{\
transition:'+transitionChill+'\
opacity: 1;\
box-shadow: 0 1px 2px rgba(0,0,0,0.2);\
'+useShadowButton()+'\
position: absolute!important;\
background-color: '+ byTheme(realWhite, charmingGrey) +'!important;\
width: 50px;\
Expand Down Expand Up @@ -173,7 +173,7 @@ function kiujdgrsghsss(){
bottom: 70px!important;\
border-radius: 10px;\
transform: translateY(10px);\
box-shadow: 0 0 10px rgba(0,0,0,0.2);\
'+useShadowBrick()+'\
}\
#xBrick{\
transition:'+transitionChill+'\
Expand Down Expand Up @@ -1593,6 +1593,20 @@ function kiujdgrsghsss(){
else if(/[en|EN]/.test(a)){clientLang = "en";}
}

function useShadowButton(){
var buttonShadow = tellerTag.getAttribute("button-shadow")
if (a == null || a == "none" || a == ""){return ""}
else {return "box-shadow: 0 1px 2px rgba(0,0,0,0.2);"}
}

function useShadowBrick(){
var brickShadow = tellerTag.getAttribute("brick-shadow")
if (brickShadow == null || brickShadow == "none" || brickShadow == ""){return ""}
else {return "box-shadow: 0 0 10px rgba(0,0,0,0.2);"}
}



//Detect user language
function detectUserLang(){
var a = navigator.language || navigator.userLanguage || navigator.browserLanguage;
Expand Down

0 comments on commit b2a3267

Please sign in to comment.