mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 17:36:15 -08:00
86 lines
2.0 KiB
Plaintext
86 lines
2.0 KiB
Plaintext
<html>
|
||
<head>
|
||
<title>{{it.title}}</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<style>
|
||
body {
|
||
font-family: Arial, sans-serif;
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
header {
|
||
width: 100%;
|
||
background-color: #f8f9fa;
|
||
padding: 10px 0;
|
||
text-align: center;
|
||
}
|
||
header h1 {
|
||
margin: 0;
|
||
font-size: 24px;
|
||
}
|
||
.button-container {
|
||
display: flex;
|
||
justify-content: center;
|
||
gap: 20px;
|
||
margin-top: 20px;
|
||
}
|
||
button {
|
||
padding: 10px 20px;
|
||
border: none;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
cursor: pointer;
|
||
color: white;
|
||
}
|
||
.up-channel {
|
||
background-color: #007bff;
|
||
}
|
||
.down-channel {
|
||
background-color: #28a745;
|
||
}
|
||
footer {
|
||
margin-top: 30px;
|
||
text-align: center;
|
||
}
|
||
footer p {
|
||
font-size: 14px;
|
||
color: #6c757d;
|
||
}
|
||
</style>
|
||
<script>
|
||
// AJAX isteği yapmak için fetch API kullanımı
|
||
function callAjax(url) {
|
||
fetch(url)
|
||
.then(response => {
|
||
if (!response.ok) {
|
||
throw new Error('Network response was not ok');
|
||
}
|
||
return response.json();
|
||
})
|
||
.then(data => {
|
||
console.log('Success:', data);
|
||
alert('AJAX request successful! Check console for data.');
|
||
})
|
||
.catch((error) => {
|
||
console.error('There was a problem with your fetch operation:', error);
|
||
});
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<h1>{{it.headerText}}</h1>
|
||
</header>
|
||
|
||
<div class="button-container">
|
||
<button class="up-channel" onclick="callAjax('{{it.upChannelUrl}}')">{{it.upChannelText}}</button>
|
||
<button class="down-channel" onclick="callAjax('{{it.downChannelUrl}}')">{{it.downChannelText}}</button>
|
||
</div>
|
||
|
||
<footer>
|
||
<p>{{it.footer}}</p>
|
||
</footer>
|
||
</body>
|
||
</html>
|