Skip to content

Instantly share code, notes, and snippets.

View schmolzp's full-sized avatar

Peter schmolzp

  • University of South Carolina
View GitHub Profile
@schmolzp
schmolzp / livechat.js
Last active October 5, 2020 19:22
Livechat Focus
<style>
.skipto {
position: absolute;
top: -10000px;
padding: .5rem 1em;
background-color: #000;
color: #fff;
z-index: 1000;
}
.skipto:focus {
@schmolzp
schmolzp / loading.html
Last active September 10, 2020 13:57
Loading Screen animation
<div aria-label="Page Loading" id="loadWrap" role="complementary" style="display: none;">
<!-- Loading SVG goes here -->
</div>
@schmolzp
schmolzp / mailchimp_form_parse.js
Created February 14, 2017 19:15
MailChimp Form Parse
// Parse parameters in URL
$.urlParam = function(name){
var results = new RegExp(&apos;[\?&amp;]&apos; + name + &apos;=([^&amp;#]*)&apos;).exec(window.location.href);
var checkNull = results == null ? '' : results[1] || 0;
return checkNull;
}
// Create hidden input elems and add them to form
function addFormElem(paramName, fieldName) {