| Server IP : 54.233.248.239 / Your IP : 172.28.1.13 Web Server : Apache System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/vinumday2_0/resources/views/site/ |
Upload File : |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Início</title>
<meta charset="utf-8">
<!--CSS da página-->
<link rel="stylesheet" href="css/aniver-stories.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,300,400,500,700,800,900" rel="stylesheet">
</head>
<body>
<section id="capture" class="story sixth_story">
<img class="story_logo" src="img/aniver/stories/logo.png">
<div class="story_text">
<p class="text_coin">A VinumDay sempre traz bons vinhos com excelentes oportunidades e em todas as vezes que você as aproveitou, economizou um valor total de:</p>
<span class="span_coins">
<h5>R$ 1.283,92</h5>
</span>
</div>
<div class="sixth_vector">
<img src="img/aniver/stories/coins.svg">
</div>
</section>
<div id="appendImg"></div>
<script type="text/javascript" src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<script type="text/javascript">
alert('v1.1');
html2canvas(document.querySelector("#capture")).then(canvas => {
var anchorTag = document.createElement("a");
document.body.appendChild(anchorTag);
document.getElementById("appendImg").appendChild(canvas);
anchorTag.download = "story1.jpg";
anchorTag.href = canvas.toDataURL();
anchorTag.target = "_blank";
anchorTag.click();
console.log(canvas.toDataURL());
});
</script>
</body>
</html>