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
@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 / 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 / hubspot_recommended_posts.html
Last active November 2, 2015 08:25
Return 3 Recommended Posts using HubSpot Hubl
@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 / 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 / robots.txt
Last active November 2, 2015 08:29 — forked from chuckreynolds/robots.txt
A WordPress robots.txt by Archie22is ----> https://github.com/Archie22is
User-agent: *
# Directories
Disallow: /cgi-bin/
Disallow: /wp-admin/
Disallow: /trackback/
Disallow: /wp-includes/
Disallow: /comment-page-
Disallow: /wp-content/themes/
Disallow: /wp-content/plugins/
# Files
@Archie22is
Archie22is / Scripts.html
Last active November 2, 2015 08:29
Scroll to page
<div id="fixed">
My fixed bar
</div>
<div id="targets">
<div id="target-1">
<a href="#target-2">Jump to target 2</a>
</div>
<div id="target-2">
<a href="#target-3">Jump to target 3</a>
@Archie22is
Archie22is / functions.php
Last active November 2, 2015 08:30
Hide Pods Admin Menu from non-adminitrators
<?php
// add the following script to your theme functions.php
// Archie22is ---> https://github.com/Archie22is
add_action('admin_menu', 'remove_pods_menu', 11);
function remove_pods_menu () {
get_currentuserinfo() ;
global $user_level;
if ($user_level < 10){
@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>
@Archie22is
Archie22is / pagination.html
Created November 24, 2015 07:43
jQuery / JavaScript pagination | Source: http://jsfiddle.net/fSmEL/167/
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>