Lazy Load Site Search
This is not possible until page results are rendered correctly. On ice for later.
Results
Name
Password Generator (link: /password-generator)
Description Output
Generate Password Password: $(document).ready(function() { let colorArray = ['White', 'Black', 'Grey', 'Yellow', 'Red', 'Blue', 'Green', 'Brown', 'Pink', 'Orange', 'Purple']; let thingsArray = ['Dog', 'Cat', 'Car', 'Fish', 'Lion', 'Apple', 'Orange', 'Table']; let charArray = ['#', '$', '%', '.', '@', '!']; function randomArrayItem(myArray) { return myArray[Math.floor(Math.random() * myArray.length)]; } $('#generator').click(function() { let randomColor = randomArrayItem(colorArray); let randomThing = randomArrayItem(thingsArray); let randomChar = randomArrayItem(charArray); let randomNumber = Math.floor(Math.random() * 90 + 10); $('#password').text("Password: " + randomColor + randomChar + randomThing + randomNumber); }); }); or latest version: http://jhpg.surge.sh/Name
Rem Calculator (link: /rem-calculator)
Description Output
ul.rem-result { margin: 0; padding: 0; } ul.rem-result li { list-style: none; border-bottom: 1px solid #dedede; width: 20%; padding: 3px; } .result-container { padding: 1.25rem; border-radius: .25rem; background-color: #f7f8f9; margin-top: 1rem; } Choose your base <HTML> font-size (px) px sizes to convert to REM Calculate OUTPUT: $(document).ready(function() { $("#output").empty(); $("#calc").click(function(e) { e.preventDefault(); var accuracy = 4; // decimal places var out = $("#output"); var base = $("#base").val(); var px = $("#pxList").val().split(","); out.empty(); $.each(px, function(i, v) { var px = parseInt(v); var rem = parseFloat((px / parseInt(base, 10)).toPrecision(accuracy)); var isBase = (rem === 1) ? " (base)" : ""; out.append("" + v + "px = " + rem + "rem" + isBase + ""); }) }) })Name
Submit Test (link: /submit-test)
Description Output
Logout Email Password var correctCaptcha = function(response) { console.log('It worked'); //alert(response); }; var correctCaptcha = function() { var $f = $('#loginform'); //var $r = $('#msgResponse'); var gr = grecaptcha.getResponse(); $f.data("sent", true); $.ajax( { type: 'POST', dataType : "json", url: $f.attr('action'), data: $f.serialize() }); } Items: jimOUTPUT: