This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Qawelesizwe Mlilo | |
Email: [email protected] | |
Dependency: Mootools | |
Notes: This code was used in a Joomla! project and can be easily modified to run without a library | |
*/ | |
var slideShow = function (img, o) { | |
this.element = $(img); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oldPreload = { | |
myImages: [], // stores image url paths | |
counter: 0, // keeps count of all loaded images | |
intervalId: null, // keeps setInterval pointer id | |
imageFolder: [], // stores images objects | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
**************************************************** | |
COPYRIGHT © 2011 Raging Flame | |
AUTHOR: Qawelesizwe Mlilo | |
**************************************************** | |
*/ | |
var imgPreload = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Qawelesizwe Mlilo | |
Email: [email protected] | |
Notes: This script is for optimising loading speed for pages with many images. | |
*/ | |
// Mootools | |
window.addEvent('domready', function () { | |
$$("img").each(function (image) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
**************************************************** | |
COPYRIGHT © 2011 Raging Flame | |
AUTHOR: Qawelesizwe Mlilo | |
Email: [email protected] | |
**************************************************** | |
*/ | |
(function (g_url) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
**************************************************** | |
COPYRIGHT © 2011 Raging Flame | |
AUTHOR: Qawelesizwe Mlilo | |
Email: [email protected] | |
**************************************************** | |
*/ | |
function saveBookmark(data){ | |
var requester = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
**************************************************** | |
COPYRIGHT © 2011 Raging Flame | |
AUTHOR: Qawelesizwe Mlilo | |
Email: [email protected] | |
**************************************************** | |
*/ | |
class createUser { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toGreyScale(r, g, b) { | |
return r * 0.2989 + g * 0.5870 + b * 0.1140; | |
} | |
function editImage(img, targetDiv) { | |
var id = "editeImage", canvasContainer = document.getElementById(targetDiv), | |
imgCanvas, ctx, imageData, px, len, i, redPx, greenPx, bluePx, greyscale; | |
imgCanvas = document.createElement("canvas"); | |
imgCanvas.id = id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toGreyScale(r, g, b) { | |
return r * 0.2989 + g * 0.5870 + b * 0.1140; | |
} | |
function editImage(img, targetDiv) { | |
var id = "editeImage", canvasContainer = document.getElementById(targetDiv), | |
imgCanvas, ctx, imageData, px, len, i, redPx, greenPx, bluePx, greyscale; | |
imgCanvas = document.createElement("canvas"); | |
imgCanvas.id = id; |
OlderNewer