<a id="lol" href="/apply/" class="card shadow-lg lift h-100">
...
<script>document.getElementById('lol').onclick = function () {
localStorage.setItem('game', "LOL");
}
</script>
<script>document.getElementById('val').onclick = function () {
localStorage.setItem('game', "VAL");
}
</script>
<script>document.getElementById('tft').onclick = function () {
localStorage.setItem('game', "TFT");
}
</script>
<script>document.getElementById('wr').onclick = function () {
localStorage.setItem('game', "WR");
}
</script>
<script>document.getElementById('ow').onclick = function () {
localStorage.setItem('game', "OW");
}
</script>
<h1 id="game"></h1>
<script>
let game = localStorage.getItem('game');
let lol = document.getElementById('game')
let val = document.getElementById('game')
let tft = document.getElementById('game')
let wr = document.getElementById('game')
let ov = document.getElementById('game')
window.onload = function() {
if(game == null){
lol.innerHTML;
val.innerHTML;
tft.innerHTML;
wr.innerHTML;
ov.innerHTML;
}
else {
lol.innerHTML = game;
val.innerHTML = game;
tft.innerHTML = game;
wr.innerHTML = game;
ov.innerHTML = game;
}
}
</script>
<a id="Lol" href="/apply/" class="card shadow-lg lift h-100">
<script>document.getElementById('Lol').onclick = function () {
localStorage.setItem('game', "League of Legends");
}
</script>
<h1 id="game" ></h1>
<script>
let game = localStorage.getItem('game');
let job = document.getElementById('game')
window.onload = function() {
if(game == null){
job.innerHTML;
}
else {
job.innerHTML = game;
}
}
</script>
<script>
const currency_data = {"USD":1.0664,"GBP":0.8486,"Updated":"Tue, 24 May 2022 00:00:02 +0000"}
</script>
<script>
setTimeout(function(){
$('#currency-eur').trigger('click');
}, 1000);
</script>
<a class="clickme">
Нажми на меня!
</a>
<script>
$('.clickme').click(function(){
if (!$(this).data('status')) {
$(this).html('Молодец! А еще раз слабо?');
$(this).data('status', true);
}
else {
$(this).html('Ну ты гигант! А может еще раз?');
$(this).data('status', false);
}
});
</script>
<input id="datepicker" class="button" type="submit" value="<?php _e('Оплатить', 'inter');?>" style="background-color: #ef8989">
<?php echo $cancel_url;?>
</form>
<script>
setTimeout(function(){
$('#datepicker').trigger('click');
}, 1000);
</script>