Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ <h2>Share Photos</h2>
var submitted = false;
</script>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;"
onload="if(submitted) {window.location='https://anshultilondiya.github.io/SDA/'}"></iframe>
onload="if(submitted) {window.location='https://devlup-labs.github.io/souvenirs_iitj/'}"></iframe>
<form id="user_photo_submit" name="form"
action="https://docs.google.com/forms/u/0/d/e/1FAIpQLScF4NhjhqdSy4DmmYeQv-bg8PnQFSCiCxezM1VSMF_eKHYPYg/formResponse"
method="POST" target="hidden_iframe" onsubmit="submitted=true;">
Expand All @@ -256,7 +256,7 @@ <h2>Share Photos</h2>
<div class="agile-week">
<p>Link :</p>
<textarea onchange="is_url()" id="drivelink" type="drivelink" name="entry.1752709935"
placeholder="Google drive link where the photos are stored" required=""></textarea>
placeholder="Google drive link of the folder where the photos are stored" required=""></textarea>
</div>
<div class="clear"></div>
<input id="checkid" type="submit" id="submit" value="Submit" />
Expand All @@ -268,8 +268,7 @@ <h2>Share Photos</h2>

function is_url() {

regexp =
/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/;
var regexp = /https:\/\/drive\.google\.com\/drive\/u\/0\/folders\/[a-zA-Z0-9_-]/;

var str = document.getElementById("drivelink").value;
if (str == '') {
Expand Down