mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-15 08:37:09 +00:00
Changed .html → .php
This commit is contained in:
parent
5500de6592
commit
bce1290220
1 changed files with 49 additions and 0 deletions
49
index.php
Normal file
49
index.php
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Is it Vegan? - VeganCheck.me</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
|
||||||
|
<meta name="description" content="Check if a product is Vegan or not with VeganCheck.me">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<meta property="og:title" content="Is it Vegan? - VeganCheck.me">
|
||||||
|
<meta property="og:type" content="">
|
||||||
|
<meta property="og:url" content="https://vegancheck.me">
|
||||||
|
|
||||||
|
<link rel="manifest" href="site.webmanifest">
|
||||||
|
<link rel="apple-touch-icon" href="icon.png">
|
||||||
|
|
||||||
|
<link href="css/style.min.css?v=3" rel="stylesheet">
|
||||||
|
<script src="js/jquery.min.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div id="main">
|
||||||
|
<img src="VeganCheck.svg" alt="Logo">
|
||||||
|
<h1>VeganCheck.me</h1>
|
||||||
|
|
||||||
|
<form action="script.php">
|
||||||
|
<input type="text" id="barcode" name="barcode" placeholder="Enter Barcode of the product you'd like to check">
|
||||||
|
<input type="submit" name="submit" value="Check it">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div id="result"> </div>
|
||||||
|
<footer>
|
||||||
|
<p>Made with <i class="icon-love"></i> by <a href="https://philipbrembeck.com">Philip Brembeck</a>
|
||||||
|
<br>Hosted environmentally friendly / <a href="privacy-policy">Privacy Policy</a></p>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="js/submit.js"></script>
|
||||||
|
<?php
|
||||||
|
header('Access-Control-Allow-Origin: https://analytics.vegancheck.me');
|
||||||
|
if (isset($_COOKIE['log']) && $_COOKIE['log'] == "Yes"){echo '<script async src="https://analytics.vegancheck.me/tracker.js" data-ackee-server="https://analytics.vegancheck.me" data-ackee-domain-id="77898809-adfe-4573-a05f-88cd663f0fb5" data-ackee-opts=\'{ "detailed": true }\'></script>';}
|
||||||
|
elseif (isset($_COOKIE['log']) && $_COOKIE['log'] == "No"){echo '<script async src="https://analytics.vegancheck.me/tracker.js" data-ackee-server="https://analytics.vegancheck.me" data-ackee-domain-id="77898809-adfe-4573-a05f-88cd663f0fb5"></script>';}
|
||||||
|
else{echo '<script async src="https://analytics.vegancheck.me/tracker.js" data-ackee-server="https://analytics.vegancheck.me" data-ackee-domain-id="77898809-adfe-4573-a05f-88cd663f0fb5" data-ackee-opts=\'{ "detailed": true }\'></script>';}
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue