diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..bdb0cabc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..cd2946ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,47 @@ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk diff --git a/README.md b/README.md index d9a1ef70..b2b34c50 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +I created a demo at www.jknowscomputers.com/fotf +The admin portal is a small gear in the bottom right of the screen. The password is "FocusOnTheFamily" + + # FOTF-Developer-Exercise ##Introduction## The purpose of this exercise is to give you a chance to showcase your talents and abilities. Please have fun with this, and wow us with your best. diff --git a/css/style.css b/css/style.css new file mode 100644 index 00000000..3182117f --- /dev/null +++ b/css/style.css @@ -0,0 +1,783 @@ +@charset "utf-8"; +/* + + + + + Ready To Weds | Helping Engaged Couples + + + + + + + + + + +
+
12 Ways to Start
a Marriage You'll Love
+

Dr. Greg & Erin Smalley

General Editors
+
+
Begin
+
+
+
+
+ +
+
+
+
+ +
+
+
+ + diff --git a/js/js.js b/js/js.js new file mode 100644 index 00000000..75cd4015 --- /dev/null +++ b/js/js.js @@ -0,0 +1,142 @@ +// 0){ + + $('#adPass').removeClass('error1'); + passVal = true; + + }else{ + + $('#adPass').addClass('error1'); + passVal = false; + + } + + if(passVal==true){ + + var data = new Object(); + data.pas = $("#adPass").val(); + + var options = new Object(); + options.data = data; + options.dataType = 'text'; + options.type = 'post'; + options.success = function(response){ + + + + if(response == 1) { + + location.reload(); + $('#moreInfo').text(''); + + } else { + + $('#moreInfo').text('Incorrect'); + + } + + }; + options.url = 'php/login_ajax.php'; + + $.ajax(options); + } + +} + +$('html').on('keydown', function(e) { + if (e.which == 13) { + validateP(); + } +}); + +function edit(){ + + $('#screen').fadeIn(1000); + $('#admin').fadeIn(1000); + $('#adPass').focus(); + +} + +function closeEdit(){ + + $('#screen').fadeOut(500); + $('#admin').fadeOut(500); + +} + +function logOut(){ + + var data = new Object(); + data.pas = 1; + + var options = new Object(); + options.data = data; + options.dataType = 'text'; + options.type = 'post'; + options.success = function(response){ + + location.reload(); + + }; + options.url = 'php/logout_ajax.php'; + + $.ajax(options); + +} + +function getPoints(){ + + if($('#listPoints').is(':visible')){ + + $('#listPoints').fadeOut(500); + $('#viewPoint').fadeOut(500); + $('#genEditors').fadeIn(1000); + $('#motto').fadeIn(1000); + $('#rings').fadeIn(1000); + $('#heart').removeAttr("style"); + $('#heart').text('Start'); + $('#heart').addClass('pulse2'); + $('#readyToWed').css('opacity','1.0'); + + }else{ + + $('#heart').text('Back'); + $('#heart').removeClass('pulse2'); + $('#heart').css('opacity','0.8'); + $('#heart').css('top','50px'); + $('#heart').css('right','50px'); + $('#heart').css('left','unset'); + $('#heart').css('margin-left','unset'); + $('#heart').css('margin-top','unset'); + $('#readyToWed').css('opacity','0.1'); + $('#genEditors').fadeOut(500); + $('#motto').fadeOut(500); + $('#rings').fadeOut(500); + $('#viewPoint').fadeOut(500); + $('#listPoints').fadeIn(1000); + + } + +} + +function viewPoint(numIn,titleIn,DetailsIn){ + + $('#viewPoint').html("
"+numIn+"
"+titleIn+" "+DetailsIn); + $('#listPoints').fadeOut(500); + $('#viewPoint').fadeIn(1000); + +} \ No newline at end of file diff --git a/php/connect.php b/php/connect.php new file mode 100644 index 00000000..bc500333 --- /dev/null +++ b/php/connect.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/php/connectro.php b/php/connectro.php new file mode 100644 index 00000000..aa56939c --- /dev/null +++ b/php/connectro.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/php/includes/login_functions.inc.php b/php/includes/login_functions.inc.php new file mode 100644 index 00000000..0ca0197b --- /dev/null +++ b/php/includes/login_functions.inc.php @@ -0,0 +1,37 @@ + \ No newline at end of file diff --git a/php/logout_ajax.php b/php/logout_ajax.php new file mode 100644 index 00000000..6452a26b --- /dev/null +++ b/php/logout_ajax.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/php/r_list.php b/php/r_list.php new file mode 100644 index 00000000..419f367e --- /dev/null +++ b/php/r_list.php @@ -0,0 +1,90 @@ +0){ + + if(isset($_SESSION['UserID'])){ + + }else{ + + echo '
'; + + } + + while($row = mysqli_fetch_array($r, MYSQLI_ASSOC)){ + + if(isset($_SESSION['UserID'])){ + + echo '
'; + + }else{ + + echo '
'.$row['rtwp_pointID'].'. '.$row['rtwp_pointTitle'].'
'; + + } + + } + + if(isset($_SESSION['UserID'])){ //thought I would hide this js until now + + echo '
Save
'; + + + + } + + echo '
'; + +} + +mysqli_free_result ($r); + +?> \ No newline at end of file diff --git a/php/r_login.php b/php/r_login.php new file mode 100644 index 00000000..cc9b3131 --- /dev/null +++ b/php/r_login.php @@ -0,0 +1,15 @@ +Logout'; + +}else{ + + echo '
'; + +} + +?> \ No newline at end of file diff --git a/php/updatePoints_ajax.php b/php/updatePoints_ajax.php new file mode 100644 index 00000000..e11a18d6 --- /dev/null +++ b/php/updatePoints_ajax.php @@ -0,0 +1,24 @@ + \ No newline at end of file