Compare commits
44 Commits
collapsibl
...
master
Author | SHA1 | Date |
---|---|---|
sigonasr2 | 9e961573a8 | 6 years ago |
BuildTools | 4e90b0d1a7 | 6 years ago |
BuildTools | 0fa35401b5 | 6 years ago |
BuildTools | 3c70252351 | 6 years ago |
sigonasr2 | 8d4b1fe06f | 6 years ago |
Kevin Falting | 2a1db1c185 | 6 years ago |
Kevin Falting | b3b5adb447 | 6 years ago |
Kevin Falting | 7f8548e6ff | 6 years ago |
Kevin Falting | e309dcdfdd | 6 years ago |
Kevin Falting | 989a84b567 | 6 years ago |
Kevin Falting | 8f2eb87a0f | 6 years ago |
Kevin Falting | a6aa078a33 | 6 years ago |
sigonasr2 | 945823fc79 | 6 years ago |
sigonasr2 | 8897b5010b | 6 years ago |
sigonasr2 | b2b09f0639 | 6 years ago |
sigonasr2 | b57541f608 | 6 years ago |
sigonasr2 | 1ec7a366d1 | 6 years ago |
sigonasr2 | e2fba32109 | 6 years ago |
sigonasr2 | 3ba2ba6511 | 6 years ago |
sigonasr2 | 0a10fee15a | 6 years ago |
sigonasr2 | b5ef1ae474 | 6 years ago |
sigonasr2 | 157de55ad5 | 6 years ago |
sigonasr2 | d7fdb9cd5a | 6 years ago |
sigonasr2 | 3e0559f8df | 6 years ago |
Joshua Sigona | 994e8b801e | 6 years ago |
Joshua Sigona | 10d8be599a | 6 years ago |
Joshua Sigona | c4f30b9f99 | 6 years ago |
sigonasr2 | 2b581138b3 | 6 years ago |
sigonasr2 | dfee672866 | 6 years ago |
sigonasr2 | 294101293b | 6 years ago |
sigonasr2 | 08f2c3f577 | 6 years ago |
sigonasr2 | bd654b3be1 | 6 years ago |
sigonasr2 | 8572ca28d9 | 6 years ago |
sigonasr2 | 2eecc56591 | 6 years ago |
sigonasr2 | 4a6ec8efc8 | 6 years ago |
sigonasr2 | ae921f12b8 | 6 years ago |
Joshua Sigona | 2cd52587bb | 6 years ago |
Kevin Falting | 2ac0f03abd | 6 years ago |
Kevin Falting | 528ff726da | 6 years ago |
Matthew Reichardt | 2c80aedf78 | 6 years ago |
sigonasr2 | 5d68802cf8 | 6 years ago |
Joshua Sigona | a2c93c33dd | 6 years ago |
sigonasr2 | 4322815309 | 6 years ago |
sigonasr2 | ca198f850a | 6 years ago |
@ -1,4 +1,28 @@ |
||||
|
||||
var vals = [ |
||||
`<h1 class="devOsan"">
|
||||
<span style="color: #696035;">{</span>dev<span style="color: #696035;">}</span>Osan |
||||
</h1> |
||||
<h4 class="devOsan">Software Development Club</h4>`, //Original |
||||
`<h1 class="devOsan" style="text-shadow: 2px 2px 6px #AAFFAA;">
|
||||
<span style="color: #696035;">{</span>dev<span style="color: #696035;">}</span>Osan |
||||
</h1> |
||||
<h4 class="devOsan">Software Development Club</h4>`, //By Sig |
||||
]; |
||||
|
||||
var vals2 = [ |
||||
`<span style="color: #696035">{</span>dev<span style="color: #696035">}</span>Osan`, //Original
|
||||
`<span style="color:black;text-shadow: 0px 0px 2px #AAFFAA;"><span style="color: #696035;">{</span>dev<span style="color: #696035">}</span>Osan</span>`, //By Sig
|
||||
]; |
||||
|
||||
window.onload=generateLogo(Math.floor(Math.random()*vals.length)); |
||||
|
||||
function generateLogo(numb) { |
||||
document.getElementById("devOsanLogo-dynamic").innerHTML=vals[numb]; |
||||
document.getElementById("devOsanMiniLogo-dynamic").innerHTML=vals2[numb]; |
||||
}
|
||||
|
||||
$(function(){ |
||||
var navMain = $(".navbar-collapse"); |
||||
navMain.on("click","a:not([data-toggle])",null,function(){navMain.collapse('hide');}); |
||||
}); |
||||
});
|
||||
|
@ -0,0 +1,80 @@ |
||||
|
||||
window.onload=init(); |
||||
|
||||
function init() { |
||||
var defaultText=` |
||||
<h3 style="margin-top:24px;">Ask <span style="color: #696035">{</span>dev<span style="color: #696035">}</span>Osan</h3> |
||||
<!--<input type="text" style="width:85%" name="question" value="What would you like to know?"><input type="submit">--> |
||||
<form name="q" "action="#formanchor" onsubmit="submitQuestion(); return false;"> |
||||
<div class="input-group input-group-lg"> |
||||
<div class="input-group-prepend"> |
||||
<span class="input-group-text" id="inputGroup-sizing-lg">Q</span> |
||||
</div> |
||||
<input type="text" class="form-control" placeholder="What would you like to know?" aria-label="Question" aria-describedby="inputGroup-sizing-lg" name="question" required> |
||||
</div> |
||||
<br> |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-5"> |
||||
<div class="input-group input-group-sm"> |
||||
<input type="text" id="name" class="form-control" placeholder="Name (Optional)" aria-describedby="namehelp"> |
||||
</div> |
||||
<small id="namehelp" class="form-text text-muted"> |
||||
Your name will be displayed next to the question. |
||||
</small> |
||||
</div> |
||||
<div class="col-7"> |
||||
<div class="input-group input-group-sm"> |
||||
<input type="text" id="email" class="form-control" placeholder="Email (Optional)" aria-describedby="namehelp"> |
||||
</div> |
||||
<small id="namehelp" class="form-text text-muted"> |
||||
Providing an email will send you a notification when your question has been answered. |
||||
</small> |
||||
</div> |
||||
<button class="btn btn-primary col-3 m-2" type="submit">Submit</button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
<hr> |
||||
<div class="sig-ask-devosan-popular">Fetching data...</div> |
||||
`;
|
||||
document.getElementsByClassName("sig-ask-devosan")[0].innerHTML=` |
||||
<div class="sig-ask-devosan1"></div> |
||||
<div class="sig-ask-devosan2"></div> |
||||
`;
|
||||
document.getElementsByClassName("sig-ask-devosan1")[0].style.display="block"; |
||||
document.getElementsByClassName("sig-ask-devosan1")[0].innerHTML=defaultText; |
||||
document.getElementsByClassName("sig-ask-devosan2")[0].style.display="none"; |
||||
var req = new XMLHttpRequest(); |
||||
req.onreadystatechange = function() { |
||||
if (this.readyState==4 && this.status==200) { |
||||
document.getElementsByClassName("sig-ask-devosan-popular")[0].innerHTML=this.responseText; |
||||
} |
||||
} |
||||
req.open("POST","http://45.33.13.215/projects/dev-osan/dev-osan.github.io/sig-ask-devosan/popularquestions.php",true) |
||||
req.send(); |
||||
document.getElementsByClassName("sig-ask-devosan-popular")[0].innerHTML=` |
||||
Fetch data... |
||||
`;
|
||||
} |
||||
|
||||
function submitQuestion() { |
||||
document.getElementsByClassName("sig-ask-devosan1")[0].style.display="none"; |
||||
document.getElementsByClassName("sig-ask-devosan2")[0].style.display="block"; |
||||
document.getElementsByClassName("sig-ask-devosan2")[0].innerHTML=`<hr>
|
||||
<button class="btn btn-primary m-2" type="button" disabled> |
||||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> |
||||
Submitting Question... |
||||
</button> |
||||
`;
|
||||
var req = new XMLHttpRequest(); |
||||
req.onreadystatechange = function() { |
||||
if (this.readyState==4 && this.status==200) { |
||||
document.getElementsByClassName("sig-ask-devosan2")[0].innerHTML=this.responseText; |
||||
} |
||||
} |
||||
req.open("POST","http://45.33.13.215/projects/dev-osan/dev-osan.github.io/sig-ask-devosan/index.php",true) |
||||
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
||||
req.send(`question=${document.forms["q"]["question"].value}&name=${document.forms["q"]["name"].value}&email=${document.forms["q"]["email"].value}`); |
||||
} |
||||
|
@ -0,0 +1,23 @@ |
||||
<?php |
||||
if (strlen($_POST['question'])>0) { |
||||
$question = $_POST['question']; |
||||
$name = $_POST['name']; |
||||
$email = $_POST['email']; |
||||
//echo "Posted Question: <b>".$_POST['question']."</b><br>"; |
||||
if (strlen($_POST['name'])>0) { |
||||
//echo "Posted Name: <b>".$_POST['name']."</b><br>"; |
||||
} |
||||
if (strlen($_POST['email'])>0) { |
||||
//echo "Posted Email: <b>".$_POST['email']."</b><br>"; |
||||
} |
||||
|
||||
//Submit the question to a polling list. |
||||
$file = fopen("./requests/requests.php","a"); |
||||
fwrite($file,$question." |
||||
".$name." |
||||
".$email." |
||||
"); |
||||
} else { |
||||
echo "-1"; |
||||
} |
||||
?> |
@ -0,0 +1,3 @@ |
||||
<?php |
||||
echo "ping!"; |
||||
?> |
@ -0,0 +1,25 @@ |
||||
<?php |
||||
fdasfdsafdasvdaserq |
||||
|
||||
I am trying to make sure this thing is working. Can you confirm? |
||||
Sig |
||||
It appears it is working! Great! |
||||
Sig |
||||
sigonasr2@gmail.com |
||||
One final test. |
||||
Joshua |
||||
sigonasr2@gmail.comActual final test. |
||||
Sig |
||||
sigonasr2@gmail.com |
||||
Sig<HTML><Test> |
||||
sig |
||||
Yes |
||||
fe1rf1feasvdzdz |
||||
fdafdasgfreqw |
||||
|
||||
ffe1rfe3qwadafdasfdqa |
||||
|
||||
|
||||
?<>>?> |
||||
|
||||
|
Loading…
Reference in new issue