fix footer set language
This commit is contained in:
parent
8e41749cd4
commit
08b2e16e73
@ -877,5 +877,6 @@
|
|||||||
"will_be_replaced_with_Company_Name": "will be replaced with Company Name",
|
"will_be_replaced_with_Company_Name": "will be replaced with Company Name",
|
||||||
"Token_has_expired__Please_log_in_again_": "Token has expired. Please log in again.",
|
"Token_has_expired__Please_log_in_again_": "Token has expired. Please log in again.",
|
||||||
"Minute": "Minute",
|
"Minute": "Minute",
|
||||||
"Hour": "Hour"
|
"Hour": "Hour",
|
||||||
|
"Failed_to_connect_to_device": "Failed to connect to device"
|
||||||
}
|
}
|
@ -79,7 +79,8 @@
|
|||||||
}, function(error) {});
|
}, function(error) {});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var Tawk_LoadStart = new Date();Tawk_API.visitor = {
|
var Tawk_LoadStart = new Date();
|
||||||
|
Tawk_API.visitor = {
|
||||||
name : '{$_user['fullname']}',
|
name : '{$_user['fullname']}',
|
||||||
email : '{$_user['email']}',
|
email : '{$_user['email']}',
|
||||||
userId: '{$_user['id']}'
|
userId: '{$_user['id']}'
|
||||||
@ -128,70 +129,69 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
{literal}
|
{literal}
|
||||||
<script>
|
<script>
|
||||||
var listAtts = document.querySelectorAll(`[api-get-text]`);
|
var listAtts = document.querySelectorAll(`[api-get-text]`);
|
||||||
listAtts.forEach(function(el) {
|
listAtts.forEach(function(el) {
|
||||||
$.get(el.getAttribute('api-get-text'), function(data) {
|
$.get(el.getAttribute('api-get-text'), function(data) {
|
||||||
el.innerHTML = data;
|
el.innerHTML = data;
|
||||||
});
|
|
||||||
});
|
});
|
||||||
$(document).ready(function() {
|
});
|
||||||
var listAtts = document.querySelectorAll(`button[type="submit"]`);
|
$(document).ready(function() {
|
||||||
listAtts.forEach(function(el) {
|
var listAtts = document.querySelectorAll(`button[type="submit"]`);
|
||||||
if (el.addEventListener) { // all browsers except IE before version 9
|
listAtts.forEach(function(el) {
|
||||||
el.addEventListener("click", function() {
|
if (el.addEventListener) { // all browsers except IE before version 9
|
||||||
|
el.addEventListener("click", function() {
|
||||||
|
$(this).html(
|
||||||
|
`<span class="loading"></span>`
|
||||||
|
);
|
||||||
|
setTimeout(() => {
|
||||||
|
$(this).prop("disabled", true);
|
||||||
|
}, 100);
|
||||||
|
}, false);
|
||||||
|
} else {
|
||||||
|
if (el.attachEvent) { // IE before version 9
|
||||||
|
el.attachEvent("click", function() {
|
||||||
$(this).html(
|
$(this).html(
|
||||||
`<span class="loading"></span>`
|
`<span class="loading"></span>`
|
||||||
);
|
);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$(this).prop("disabled", true);
|
$(this).prop("disabled", true);
|
||||||
}, 100);
|
}, 100);
|
||||||
}, false);
|
});
|
||||||
} else {
|
|
||||||
if (el.attachEvent) { // IE before version 9
|
|
||||||
el.attachEvent("click", function() {
|
|
||||||
$(this).html(
|
|
||||||
`<span class="loading"></span>`
|
|
||||||
);
|
|
||||||
setTimeout(() => {
|
|
||||||
$(this).prop("disabled", true);
|
|
||||||
}, 100);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$(function() {
|
}
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
$(function() {
|
||||||
})
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
});
|
})
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function setCookie(name, value, days) {
|
function setCookie(name, value, days) {
|
||||||
var expires = "";
|
var expires = "";
|
||||||
if (days) {
|
if (days) {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||||
expires = "; expires=" + date.toUTCString();
|
expires = "; expires=" + date.toUTCString();
|
||||||
}
|
|
||||||
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
|
||||||
}
|
}
|
||||||
|
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
||||||
|
}
|
||||||
|
|
||||||
function getCookie(name) {
|
function getCookie(name) {
|
||||||
var nameEQ = name + "=";
|
var nameEQ = name + "=";
|
||||||
var ca = document.cookie.split(';');
|
var ca = document.cookie.split(';');
|
||||||
for (var i = 0; i < ca.length; i++) {
|
for (var i = 0; i < ca.length; i++) {
|
||||||
var c = ca[i];
|
var c = ca[i];
|
||||||
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
||||||
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
setCookie('user_language', '
|
return null;
|
||||||
{/literal}{$user_language}
|
}
|
||||||
{literal}', 365);
|
</script>
|
||||||
</script>
|
{/literal}
|
||||||
{/literal}
|
<script>
|
||||||
|
setCookie('user_language', '{$user_language}', 365);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
</body>
|
</html>
|
||||||
|
|
||||||
</html>
|
|
Loading…
x
Reference in New Issue
Block a user