Skip to content

Instantly share code, notes, and snippets.

View Archie22is's full-sized avatar
💭
I may be slow to respond.

ᴀʀᴄʜɪᴇ ᴍᴀᴋᴜᴡᴀ™ Archie22is

💭
I may be slow to respond.
View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@Archie22is
Archie22is / form.html
Last active September 19, 2015 22:02 — forked from hijonathan/form.html
Submit a HubSpot form with AJAX without redirecting the user.
<form class='form-inline' id='my-custom-form'>
<div class="form-group">
<input type='email' class='form-control' placeholder='Your email address' required>
</div>
<button class="btn btn-primary" type='submit'>Sign up</button>
</form>
<!-- Actual form that gets submitted to HubSpot -->
<div class="hidden" id='hubspot-form'>
<script charset="utf-8" src="//js.hsforms.net/forms/current.js"></script>
@Archie22is
Archie22is / SampleMailer.html
Created September 11, 2015 11:20
Fix Windows Outlook 2003, 2007 and 2013 image floating problem in MailChimp / HubSpot Mailer
<h1>Mailer Title</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
<img align="left" vspace="10" hspace="10" height="190" src="https://www.aatsol.co.za/images/archie.jpg" style="width:200px; height:190px; margin:0px 15px 15px 0px;" style="width:200px" />
@Archie22is
Archie22is / monoitor_keystrokes.html
Last active November 2, 2015 08:28
Monitor keystrokes using javascript
<!-- This is your html -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<p>Type something here and monitor the cosole output...</p>
</body>
@Archie22is
Archie22is / JavaScriptTables.js
Last active November 2, 2015 08:26
Creating HTML tables with JavaScript/DOM methods
function createTable() {
var i=0, rowEl=null,
tableEl = document.createElement("table");
// create 10 table rows, each with two cells
for (i=1; i <= 10; i++) {
rowEl = tableEl.insertRow(); // DOM method for creating table rows
rowEl.insertCell().textContent = "table cell "+ i +"-1" ;
rowEl.insertCell().textContent = "table cell "+ i +"-2" ;
}
document.body.appendChild( tableEl);
@Archie22is
Archie22is / hubspot_recommended_posts.html
Last active November 2, 2015 08:25
Return 3 Recommended Posts using HubSpot Hubl
@Archie22is
Archie22is / custom_jquery_pagination.html
Last active November 2, 2015 08:17
A simple custom jQuery pagination script
<!DOCTYPE html>
<html>
<head>
<title>Prev Next In jQuery - Sibeesh Passion</title>
<script src="http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js"></script>
<script>
$(document).ready(function () {
var $first = $(".first");
var i = 0;
$(".prev").click(function () {
@Archie22is
Archie22is / featured_post.html
Last active April 4, 2017 21:39
HubSpot HubL - Display a Featured blog post (using a topic or category)
<div class="blog-section">
<div class="blog-listing-outer-wrapper cell-wrapper">
<div class="featured-blog-section">
<div class="feat-blog-listing-wrapper cell-wrapper">
{# simple_list_page indicates the "blog/all" page, which is a list of links to every blog post #}
<!-- blog post -->
@Archie22is
Archie22is / login.html
Created November 2, 2015 08:02
Simple jQquery require password to view resource / web page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jQuery Login Sample | https://github.com/Archie22is</title>
</head>
<body>
<input type="password" id="pass"> <input type="button" id="b" value="Login"><br>
<span id="err"></span>
@Archie22is
Archie22is / test.html
Created November 13, 2015 07:14
jQuery hover – replace div with another div
<!-- HTML -->
<div class="switch">
<div class="avg_words float_left">
A+ (hover to see score)
</div>
<div class="avg_num">
AVG = 98.35%
</div>
</div>