Compare commits

...

43 Commits

Author SHA1 Message Date
sigonasr2 9e961573a8 Merge branch 'master' of https://github.com/sigonasr2/dev-osan.github.io 6 years ago
BuildTools 4e90b0d1a7 Verify user authentication is working. 6 years ago
BuildTools 0fa35401b5 Improved site form and added authentication and querying. 6 years ago
BuildTools 3c70252351 Created Ask Dev Osan framework 6 years ago
sigonasr2 8d4b1fe06f
Merge pull request #16 from dev-osan/master 6 years ago
Kevin Falting 2a1db1c185 add facebook and github links 6 years ago
Kevin Falting b3b5adb447 change width %100 6 years ago
Kevin Falting 7f8548e6ff add intro slides 6 years ago
Kevin Falting e309dcdfdd Merge branch 'sigonasr2-dynamicLogo-branch' 6 years ago
Kevin Falting 989a84b567 Merge branch 'dynamicLogo-branch' of https://github.com/sigonasr2/dev-osan.github.io into sigonasr2-dynamicLogo-branch 6 years ago
Kevin Falting 8f2eb87a0f
Merge pull request #18 from sigonasr2/collapsibleMenu-branch 6 years ago
Kevin Falting a6aa078a33
Merge pull request #22 from sigonasr2/carousel-branch 6 years ago
sigonasr2 945823fc79 Add missing > symbol. 6 years ago
sigonasr2 8897b5010b
Merge branch 'dev' into dynamicLogo-branch 6 years ago
sigonasr2 b2b09f0639
Merge pull request #10 from sigonasr2/collapsibleMenu-branch 6 years ago
sigonasr2 b57541f608
Merge pull request #9 from sigonasr2/carousel-branch 6 years ago
sigonasr2 1ec7a366d1 Added random HTML picker script to influence the design of devOsan logo and mini logo at random. 6 years ago
sigonasr2 e2fba32109 Prepare formatting layout for Project Carousel. 6 years ago
sigonasr2 3ba2ba6511 Created script to collapse menu. This is a fix for Issue #5 6 years ago
sigonasr2 0a10fee15a Rebase 6 years ago
sigonasr2 b5ef1ae474 Fix styles merge. 6 years ago
sigonasr2 157de55ad5 Revert "Dynamic logo" 6 years ago
sigonasr2 d7fdb9cd5a Remove submodule 6 years ago
sigonasr2 3e0559f8df Add dynamic logo 6 years ago
Joshua Sigona 994e8b801e Added random HTML picker to script influencing the design of devOsan logo and mini logo. 6 years ago
Joshua Sigona 10d8be599a Prepare formatting for Projects Carousel. 6 years ago
Joshua Sigona c4f30b9f99 Add in shadowing to make devOsan title stand out and readable. Made links stand out more with bolding and underlining. Created script to collapse menu. This is a fix for Issue #5 6 years ago
sigonasr2 2b581138b3 Change links to be more noticeable with Bolding and Underlining. 6 years ago
sigonasr2 dfee672866
Merge pull request #7 from sigonasr2/revert-6-dynamicLogo 6 years ago
sigonasr2 294101293b
Revert "Dynamic logo" 6 years ago
sigonasr2 08f2c3f577
Merge pull request #6 from sigonasr2/dynamicLogo 6 years ago
sigonasr2 bd654b3be1 Remove submodule 6 years ago
sigonasr2 8572ca28d9 Add dynamic logo 6 years ago
sigonasr2 2eecc56591 Merge branch 'dev-osan-master'. Updating master. 6 years ago
sigonasr2 4a6ec8efc8 Merge changes 6 years ago
sigonasr2 ae921f12b8
Merge pull request #4 from sigonasr2/dynamicLogo 6 years ago
Joshua Sigona 2cd52587bb Added random HTML picker to script influencing the design of devOsan logo and mini logo. 6 years ago
Kevin Falting 2ac0f03abd add p&p weekend link, extend cover size, makes clickable area confined to the card only. 6 years ago
Kevin Falting 528ff726da Create CNAME 6 years ago
Matthew Reichardt 2c80aedf78 Fixed some markup issues, changed hero unit to 60% viewport height 6 years ago
sigonasr2 5d68802cf8
Merge pull request #3 from sigonasr2/patch-1 6 years ago
sigonasr2 4322815309
Merge pull request #2 from sigonasr2/patch-1 6 years ago
sigonasr2 ca198f850a
Merge pull request #1 from sigonasr2/patch-1 6 years ago
  1. 1
      CNAME
  2. 26
      additionalScripts.js
  3. 77
      index.html
  4. 80
      sig-ask-devOsan.js
  5. 23
      sig-ask-devosan/index.php
  6. 3
      sig-ask-devosan/popularquestions.php
  7. 25
      sig-ask-devosan/requests/requests.php
  8. 52
      styles.css

@ -0,0 +1 @@
devosan.com

@ -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');});
});
});

@ -34,9 +34,9 @@
<!-- Header information, above the fold -->
<div class="above-the-fold">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="devOsan" href="#" >
<span style="color: #696035">{</span>dev<span style="color: #696035">}</span>Osan
</a>
<a class="navbar-brand" href="#" id="devOsanMiniLogo-dynamic">
<span style="color: #696035">{</span>dev<span style="color: #696035">}</span>Osan
</a>
<button
class="navbar-toggler"
type="button"
@ -49,6 +49,7 @@
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<hr />
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#club-info">Club Info</a>
@ -60,9 +61,7 @@
<a class="nav-link" href="#projects">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#learning-resources"
>Learning Resources</a
>
<a class="nav-link" href="#learning-resources">Learning Resources</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#faq">FAQs</a>
@ -77,8 +76,8 @@
<div class="container">
<div class="row">
<div class="col">
<a href="" id="announcement-card-link">
<div class="card mb-3" style="max-width: 540px; margin-top: 5%;">
<div class="card mb-3" style="max-width: 540px; margin-top: 5%;">
<a href="https://pitchandprototype.com/" id="announcement-card-link">
<div class="row no-gutters">
<div class="col-4">
<img
@ -99,16 +98,19 @@
</div>
</div>
</div>
</div>
</a>
</a>
</div>
</div>
</div>
<div class="row name-slogan">
<div class="col col-md-6 offset-md-6">
<h1 class="devOsan">
<span style="color: #696035">{</span>dev<span style="color: #696035">}</span>Osan
<div class="col col-md-6 offset-md-6" id="devOsanLogo-dynamic">
<h1>
<span style="color: #696035">{</span>dev<span
style="color: #696035"
>}</span
>Osan
</h1>
<h4 class="devOsan">Software Development Club</h4>
<h4>Software Development Club</h4>
</div>
</div>
</div>
@ -134,6 +136,11 @@
<p>Osan Air Base, South Korea</p>
</div>
</div>
<div class="row">
<div class="col col-md-8 offset-md-2">
<iframe src="https://docs.google.com/presentation/d/e/2PACX-1vSGDZERSWpev1AnjFeM2_Nl3tQzm8ETDQMZMp6D1OGqZfVLl7bjIJpqbQRREBzqmR5TTEmDE4VWa99B/embed?start=true&loop=true&delayms=5000" frameborder="0" width="100%" height="299" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
</div>
</div>
</div>
<!-- Events and Projects -->
@ -148,7 +155,7 @@
<div class="col-sm-6" id="projects">
<h3><i class="fas fa-code-branch"></i><br />Projects</h3>
<br />
<div id="projectCarousel" class="carousel slide" data-ride="carousel">
<div id="projectCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" data-interval="10000">
<h3>Bus GPS</h3>
@ -188,29 +195,12 @@
</div>
<div class="col-sm-6" id="faq">
<h3>FAQ</h3>
<div class="question1">
<h6>Do I have to know how to program?</h6>
<div class="answer">
Absolutely not, just a desire to hang out with software developers.
</div>
</div>
<div class="question2">
<h6>I want to learn a programming language but I have no experience. Where do I start?</h6>
<div class="answer">
Look at the "Getting Started" Learning Resources above for great starting points. Pick something you are passionate about making and work towards your goal by learning the requirements of that goal.
</div>
</div>
<div class="question1">
<h6>How do I fix errors when I run into them and don't know what do?</h6>
<div class="answer">
Google is your best friend. Usually asking your question through Google gives you a <b>Stack Overflow</b> article with similar issues that others have faced like you.
</div>
</div>
<div class="question2">
<h6>I want to teach something for the club that would be beneficial!</h6>
<div class="answer">
Awesome! As we explain in our meetings, anyone can come up and be the speaker for the week. If you have a topic that would benefit others then by all means we would love to hear from you! Let us know when you want to speak!
</div>
<h6>Do I have to know how to program?</h6>
<div class="answer">
Absolutely not, just a desire to hang out with software developers.
</div>
<div class="sig-ask-devosan">
</div>
</div>
</div>
@ -218,12 +208,18 @@
<!-- Footer and Contact Us -->
<div class="container-fluid" id="contact">
<div class="row">
<div class="row" style="padding: 25px 10px 25px 10px;">
<div class="col">
<h3>Contact Us</h3>
<p>
<a href="mailto:kevinfalting@gmail.com">kevinfalting@gmail.com</a>
</p>
<p>
<a href="https://www.facebook.com/groups/256151891980498/"><i class="fab fa-facebook-square"></i></a>
</p>
<p>
<a href="https://github.com/dev-osan"><i class="fab fa-github-square"></i></a>
</p>
</div>
</div>
</div>
@ -245,6 +241,7 @@
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
<script src="additionalScripts.js"></script>
<script src="additionalScripts.js"></script>
<script src="sig-ask-devOsan.js"></script>
</body>
</html>

@ -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
?<>>?>

@ -1,5 +1,5 @@
.above-the-fold {
min-height: 95vh;
min-height: 100vh;
background-image: url("img/devOsan_noLogo.png");
background-size: cover;
background-repeat: no-repeat;
@ -7,6 +7,11 @@
padding-top: 3em;
}
.navbar-collapse hr {
background: #e3e3e3;
opacity: 0.3;
}
#announcement-card-link {
text-decoration: none;
color: black;
@ -58,28 +63,10 @@ h1 {
font-size: 5em;
}
h1.devOsan{
text-shadow: 2px 2px 6px #AAFFAA;
}
a.devOsan{
text-shadow: 0px 0px 2px #AAFFAA;
color:black;
}
h4.devOsan{
text-shadow: 1px 1px 3px white;
}
h4 {
font-size: 1.8em;
}
a {
font-weight: bold;
text-decoration: underline;
}
.vision-statement {
/* font-size: 1.5em; */
margin-bottom: 3em;
@ -118,31 +105,6 @@ a {
padding-left: 12px;
}
div[class="question1"]{
.answer {
margin-left: 10px;
padding-bottom: 12px;
background-color: rgb(250,240,240);
}
div[class="question1"]>div[class="answer"]{
margin-left: 10px;
padding-bottom: 12px;
background-color: rgb(240,240,220);
}
div[class="question2"]{
margin-left: 10px;
padding-bottom: 12px;
background-color: rgb(240,240,240);
}
div[class="question2"]>div[class="answer"]{
margin-left: 10px;
padding-bottom: 12px;
background-color: rgb(230,240,220);
}
div[class="answer"]>b{
font-weight: normal;
text-decoration:underline;
}

Loading…
Cancel
Save