Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Seniors
craig1617
Commits
09daa4fc
Commit
09daa4fc
authored
Nov 16, 2016
by
Craig Earley
Browse files
have user- and author-side faces, css style template, and start for js code in user.html
parent
00fdee64
Changes
3
Hide whitespace changes
Inline
Side-by-side
input
.html
→
author
.html
View file @
09daa4fc
<!DOCTYPE html>
<html>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/style.css"
>
<body>
<h1>
Author-Side Interface
</h1>
<form>
<p>
Start URL's.
</p>
<textarea
name=
"paragraph_text"
cols=
"50"
rows=
"10"
></textarea>
<p>
Stop URL's.
</p>
<textarea
name=
"paragraph_text"
cols=
"50"
rows=
"10"
></textarea>
<br>
<input
type=
"submit"
value=
"Get my URL"
>
<input
type=
"reset"
>
</form>
<p>
Your URL:
</p>
</body>
</html>
css/style.css
0 → 100644
View file @
09daa4fc
h1
{
text-align
:
center
;
font-family
:
Arial
;
}
user.html
0 → 100644
View file @
09daa4fc
<!DOCTYPE html>
<html>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/style.css"
>
<body>
<!---
Should be some JavaScript:
- on click:
-- open url
-- note start time
-- wait
-- check url with every new url
-- when stop url: note stop time, display alert, stop tracking
--->
<h1>
User-Side Interface
</h1>
<form>
<p>
Your URL:
</p>
<input
name=
"paragraph_text"
id=
"input"
cols=
"50"
rows=
"10"
></textarea>
<br>
<button
type=
"button"
onclick=
"window.open('https://www.google.com').style.display='block'"
>
Start Test!
</button>
<input
type=
"reset"
>
</form>
</body>
</html>
<!---
Stack Overflow code for a comparable function:
<div>
<form method="get" id="go_to_url">
<input type="text" name="go_to_url" id="go_to_url_texto" placeholder="Procurar"/>
</form>
</div>
<script
$("#go_to_url").on("submit", function(event){
// prevent form from being submitted
event.preventDefault();
name = $("#go_to_url_texto").val();
// compare lower case, as you don't know what they will enter into the field
// if (name.toLowerCase() == "advogados")
// {
// // redirect the user..
// window.location.href = "http://jornalexemplo.com.br/lista%20online/advogados.html";
// }
// else
// {
// alert("no redirect..(entered: " + name + ")");
// }
window.location.href = name;
});
</script>
--->
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment