From 1da2470e4a2d7d4ea68fe3d70463d4ab16cb132e Mon Sep 17 00:00:00 2001 From: DarshitJain04 <56914284+DarshitJain04@users.noreply.github.com> Date: Mon, 11 May 2020 22:47:45 +0530 Subject: [PATCH] Changed regexp, placeholder and iframe link Added new regexp and changed the placeholder Added https://devlup-labs.github.io/souvenirs_iitj/ in the iframe above the form --- index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 3cb030b..50711c9 100644 --- a/index.html +++ b/index.html @@ -233,7 +233,7 @@

Share Photos

var submitted = false; + onload="if(submitted) {window.location='https://devlup-labs.github.io/souvenirs_iitj/'}">
@@ -256,7 +256,7 @@

Share Photos

Link :

+ placeholder="Google drive link of the folder where the photos are stored" required="">
@@ -268,8 +268,7 @@

Share Photos

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 == '') {