-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84cd711
commit cdc3ef5
Showing
12 changed files
with
109 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,7 +245,7 @@ nav { | |
padding-right: 1rem; | ||
} | ||
|
||
#loadingMembers { | ||
#loading { | ||
width: 25px; | ||
} | ||
|
||
|
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function checkURL(){ | ||
const url = document.querySelector('#urlVerify').value; | ||
document.querySelector('#loading').classList.remove('hidden'); | ||
emitData('checkURL', url); | ||
} | ||
|
||
function checkResults(result){ | ||
let resultsDiv = document.querySelector('#checkResults'); | ||
if(result[0] == '0'){ | ||
resultsDiv.querySelector('img').src = "../static/images/check.svg" | ||
} | ||
else{ | ||
resultsDiv.querySelector('img').src = "../static/images/close.svg" | ||
} | ||
resultsDiv.querySelector('p').textContent = result.substring(1); | ||
resultsDiv.classList.remove('hidden'); | ||
document.querySelector('#loading').classList.add('hidden'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "header.html" %} | ||
{% block content %} | ||
<div class="box"> | ||
<form action="javascript:checkURL()"> | ||
<h2>Verify your url points to a ics calendar</h2> | ||
<p>Webservers can be picky when fufilling requests, links that work in your browser might still not work in Slate</p> | ||
<input type="text" id="urlVerify" name="urlVerify" placeholder="URL"> | ||
<input type="submit" value="Submit"> | ||
<img id='loading' src='../static/images/blue_spinner.gif' alt='loading members' class="hidden" /> | ||
<br /> | ||
</form> | ||
<div id="checkResults" class="hidden" style="display: flex"> | ||
<img alt="result" width="30px"/> | ||
<p></p> | ||
</div> | ||
</div> | ||
{% endblock %} |