function addCopyright(param){
if(document.getElementById("copymaindiv")){
var myobj11 = document.getElementById("copymaindiv");
myobj11.remove();
}
var body11 = document.body,
html11 = document.documentElement;
var height11 = Math.max( body11.scrollHeight, body11.offsetHeight,
html11.clientHeight, html11.scrollHeight, html11.offsetHeight );
switch (param.type){
case "logo":
document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend',`
${param.content}
`)
break
case "text":
document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend',`
`)
break
default:
console.log('none copy')
}
}
window.addEventListener('load', function () {
// addCopyright({
// 'type' : 'logo',
// 'content' : 'Made with love in',
// 'img' : 'https://web4north.com/img/web4north.png',
// 'url' : 'https://web4north.com',
// 'imgwidth' : 'width:140px;',
// 'contentpadding' : 'padding: 14px 5px 14px 0px;',
// 'contentcolor' : 'gray'
// })
addCopyright({
'type' : 'logo',
'content' : 'Developed by',
'img' : 'https://api.crocus.com.tr/baha_imza_2.png',
'url' : 'https://bahabilgin.com',
'imgwidth' : 'width:175px !important;',
'contentpadding' : 'padding: 0 !important;',
'contentcolor' : 'color : gray !important;'
})
// addCopyright({
// 'type' : 'text',
// 'content' : 'Developed by',
// 'txt' : 'Baha Bilgin',
// 'url' : 'https://bahabilgin.com'
// })
})
window.addEventListener("orientationchange", function(event) {
location.reload();
});