Skip to content

Commit

Permalink
update feedback and welcome page button
Browse files Browse the repository at this point in the history
  • Loading branch information
adi0509 committed Feb 26, 2020
1 parent 9b84e69 commit 9de6efd
Show file tree
Hide file tree
Showing 10 changed files with 775 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
639 changes: 639 additions & 0 deletions riddles/feedback/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions riddles/feedback/feedback.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
3star
2star
1star
1star
1star
1star
81 changes: 81 additions & 0 deletions riddles/feedback/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html>
<head>

<title>Url Hunt</title>

<link href="https://fonts.googleapis.com/css?family=Sriracha&display=swap" rel="stylesheet">
</head>

<style type="text/css">

html,body
{
padding: 0px;
margin: 0px;
font-family: 'Montserrat', sans-serif;
background-color: white;
scroll-behavior: smooth;
background-image: url("background.svg");
background-repeat: repeat;
}


div{
margin: 5%;
text-align: center;
font-family: 'Sriracha', cursive;
font-size: 1.4em
}

.querybox img{
width: 250px;
margin: 20px;
}

.emoji{
font-family: none;
font-size: 1.4em;
}


</style>

<?php
if(isset($_GET['star']))
{
$ans = $_GET["star"];
$ans = $ans."\n";
$myfile = fopen("feedback.txt", "a") or die("Unable to open file!");
fwrite($myfile, $ans);
fclose($myfile);

// CHANGE THIS IP ADDRESS TO IP OF NEXT QUESTION
header("Location: http://answerthis.in");
}
?>

<body>
<div class="querybox">
<br><br>
<h3>Feedback Form ( Just to know how you like this game )</h3>
<br>
Choose One:<br>
<form>
<input type="radio" id="1star" name="star" value="1star" required>
<label for="1star">⭐</label><br>
<input type="radio" id="2star" name="star" value="2star">
<label for="2star">⭐⭐</label><br>
<input type="radio" id="3star" name="star" value="3star">
<label for="3star">⭐⭐⭐</label><br>
<input type="radio" id="4star" name="star" value="4star">
<label for="4star">⭐⭐⭐⭐</label><br>
<input type="radio" id="5star" name="star" value="5star">
<label for="5star">⭐⭐⭐⭐⭐</label><br>

<input type="submit" value="Submit" ><br>
</form>
</div>

</body>
</html>
49 changes: 49 additions & 0 deletions riddles/welcome-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,48 @@
margin: 20px;
}



.button {
display: inline-block;
border-radius: 4px;
background-color: #f4511e;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 28px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}

.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}

.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}

.button:hover span {
padding-right: 25px;
}

.button:hover span:after {
opacity: 1;
right: 0;
}

</style>

<body>
Expand All @@ -44,6 +86,13 @@ <h3>Riddles for programmers by programmers!<br></h3>
At Turington we try to introduce some new innovative gaming event every year.
Like last year we introduced QR Hunt. This year we are introducing a completely different version: Web Hunt.
<br>

<button onclick="myFunction()" class="button" style="vertical-align:middle"><span>Start Here </span></button>
<script>
function myFunction() {
location.replace("https://welcome-page.in")
}
</script>
</div>

</body>
Expand Down

0 comments on commit 9de6efd

Please sign in to comment.