const attrs = element.getAttributeNames().reduce((acc, name) => {
return {...acc, [name]: element.getAttribute(name)};
}, {});
function getParameterByName(name) {
var urlParams = new URLSearchParams(window.location.search);
return urlParams.get(name);
}
'/reviews/?PAGEN_1=2'.split('/').slice(-1)[0]
<canvas id="myCanvas" width="1026" height="768"></canvas>
var newImg = new Image;
newImg.onload = function() {
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.drawImage(this, 0, 0, 1026,768);
}
newImg.src='monitor.png'
var url_keyword=window.location.pathname.split('/')[2]
$('a[href*="/'+url_keyword+'/"]').addClass('active')
$.post('scriptDelete.php', $('#myForm').serialize(), function(e){})
.done(function(){swal('OK', 'OK', 'success')})
.fail(function(){swal('error', 'error','error')})