Code

#TitleDate
1compare non equality functionJul 23, 11:15 pm
2compare equality functionJul 23, 10:57 pm
3JS Using typeof to check on string typesJul 23, 2:38 am
4testing equalityJul 22, 5:57 am
5defining a variable inside a function without using var will create a global variableJul 22, 5:15 am
6add something to the start of an array with unshiftJul 19, 2:40 am
7remove the first element in an array with shiftJul 19, 2:37 am
8document ready javascript standalone version no jqueryJul 17, 1:14 am
9add a class to a div with an id javascriptJul 17, 1:11 am
10using local storage rather than cookies to store dataJul 16, 11:31 pm
11remove something from the end of an array with popJul 16, 5:58 am
12add something to the end of an array with pushJul 16, 5:49 am
13Multidimensional ArrayJul 16, 4:50 am
14get the last letter of a stringJul 16, 4:40 am
15accessing part of a variable using its indexJul 16, 4:34 am
16using transform scale in css to zoom on hover overJul 16, 2:57 am
17js check the length of a stringJul 16, 2:04 am
18Bootstrap Card Formatting HTML and CSS - Header and FooterJul 10, 2:38 am
19Move any element with css offsetsJul 9, 2:31 am
20CSS Improve Compatibility with Browser FallbacksJul 9, 2:04 am
21PHP Finding the position of a string in another string using strposJul 9, 12:00 am
22PHP str_replace - find and replace part of a stringJul 8, 11:52 pm
23using scroll-behavior: smooth cssJul 8, 2:33 am
24jquery click functionJul 3, 5:33 am
25using a css grid area templateJul 3, 2:26 am
26grid column and row spacingJul 3, 2:14 am
27Random string generator function in php suniqidJul 3, 1:13 am
28CSS Grid - Basic ColumnsJul 2, 5:59 am
29flex shorthand cssJul 2, 2:24 am
30using flexbox to align elements in a rowJul 2, 1:37 am
31Viewport width and height calculationsJul 2, 12:30 am
32Making Images Retina Display FriendlyJul 2, 12:14 am
33Making an image responsive using cssJul 2, 12:03 am
34Applied Accessibility - Tab IndexJul 1, 11:52 pm
35Applied Accessibility - Access KeysJul 1, 11:40 pm
36Applied Accessibility - Screen reader only cssJul 1, 11:24 pm
37Dropdown Box with Searchable TextJun 30, 11:57 pm
38Change link target with JQueryJun 28, 12:17 am
39Drop Down Menu Swapping Left align to RightJun 26, 5:36 am
40Whois LookupJun 24, 1:00 am
41using the disk free space function in phpJun 7, 1:33 am
42create a mysql or sqlite current timestamp with phpMay 27, 5:45 am
43Cut a string when it finds a certain character with PHPApr 17, 5:30 am
44validate a url using php with FILTER_VALIDATE_URLMar 28, 11:04 pm
45function to create a uid from htmlMar 22, 12:44 am
46calculate a percentage (dec) difference based on two numbersMar 22, 12:13 am
47check if a user is logged in using sessionsMar 20, 4:34 am
48asp classic get a url and display itMar 20, 12:08 am
49Using nth-child css to hide list items or repeated elementsMar 13, 5:10 am
50PHP MySQL vs SQLite Count Items FunctionFeb 25, 3:40 am
51How Many Days Since a Date and other CalculationsFeb 11, 12:27 am
52image Checkbox Replacement for FormsJan 18, 12:28 am
53Using Flexbox rather than FloatsJan 16, 4:27 am
54Date Conversion PHPJan 14, 10:40 pm
55white space pre-wrap formattingJan 1, 10:23 pm
56Generate a random title from an arrayDec 19, 1:34 am
57echo todays date and time in a nice formatDec 18, 11:48 pm
58Core - File StructureDec 13, 11:38 pm
59Core Class - Basic Core StructureDec 13, 11:33 pm
60Generate Sub menu using CoreDec 13, 11:09 pm
61page load timer classOct 30, 12:17 am
62human_filesize phpOct 29, 5:40 am
63xcopy backup full directory windows batOct 24, 10:33 pm
64for loop set variables $p1,$p2.. etc as blankOct 24, 3:53 am
65sqlite check table name existsOct 24, 12:44 am
66get current class name with get_classOct 22, 3:37 am
67meta keywords tagOct 17, 5:50 am
68meta description tagOct 17, 5:48 am
69assign array to variables in a loopOct 17, 5:36 am
70favicon code meta tagOct 17, 4:01 am
71hide and show elements with js using getElementById and style.displayOct 17, 1:15 am
72generate a random color rgb code with phpOct 17, 12:07 am
73css :active pseudo-class usageOct 5, 1:22 am
74Regular expression breakdown regex preg_replace phpSep 21, 1:39 am
75replace anything in brackets in a string using preg_replace regex phpSep 21, 1:17 am
76for loop with a 5 incrementSep 17, 2:45 am
77Get Current Page URL PHPSep 4, 2:19 am
78Get the document root path in php $_SERVER['DOCUMENT_ROOT']Sep 4, 12:23 am
79remove all of an element in a string <h1>Aug 31, 6:25 am
80get text between tagsAug 31, 6:20 am
81sqlite basic sql and loop resultsAug 31, 6:20 am
82convert all images into base64 encodedAug 31, 6:20 am
83wordpress change domain in configAug 31, 6:20 am
84read and sort directory contents in phpAug 31, 6:20 am
85uniqid random stringAug 31, 6:20 am
86show response headers from file get contentsAug 31, 6:20 am
87wordpress show the page content for use in a templateAug 31, 6:20 am
88file get contents reads entire file into a stringAug 31, 6:20 am
89using parse_url to extract parts of a urlAug 31, 6:20 am
90basic for loopAug 31, 6:20 am
91try catch testAug 31, 6:20 am
92tell wordpress to use the direct file method if its asking for ftp detailsAug 31, 6:20 am
93wordpress enqueue slicknav and slick sliderAug 31, 6:20 am
94wordpress include jquery in theme functionsAug 31, 6:20 am
95copy fileAug 31, 6:20 am
96some date formatting just day just month just yearAug 31, 6:20 am
97header type jsonAug 31, 6:20 am
98wordpress use a shortcode in php gravity formsAug 31, 6:20 am
99extract meta tags from url and return as json arrayAug 31, 6:20 am
100csv read exampleAug 31, 6:20 am
101php get the file modified time with filemtimeAug 31, 6:20 am
102preg_replace ereg_replace replace all charsAug 31, 6:20 am
103wordpress check home and not home for banners and thingsAug 31, 6:20 am
104wordpress advanced custom fields replace shortcode for site url with blog urlAug 31, 6:20 am
105using custom request headers array with curlAug 31, 6:20 am
106sqlite delete data older than timestamp daysAug 31, 6:20 am
107wordpress get site urlAug 31, 6:20 am
108simple html dom extract attributes simplehtmldomAug 31, 6:20 am
109find the 1st occurence of a string in another stringAug 31, 6:20 am
110pretty printing json with phpAug 31, 6:20 am
111extract meta tags from file or url as arrayAug 31, 6:20 am
112wordpress show posts loop with feature image thumbnailAug 31, 6:20 am
113random number using randAug 31, 6:20 am
114search within files in a directoryAug 31, 6:20 am
115wordpress show the post content for use in a templateAug 31, 6:20 am
116show errors in php with toggleAug 31, 6:20 am
117wordpress register enqueue javascript require jqueryAug 31, 6:20 am
118count the elements in an arrayAug 31, 6:20 am
119google map with overlay dataAug 31, 6:20 am
120round number with jsAug 31, 6:20 am
121truncate string using jqueryAug 31, 6:20 am
122detect window scroll position jqueryAug 31, 6:20 am
123flems embed in urlAug 31, 6:20 am
124change the window titleAug 31, 6:20 am
125slick slider carouselAug 31, 6:20 am
126add thisAug 31, 6:20 am
127change favicon with jqueryAug 31, 6:20 am
128load google sheet data into json string with jqueryAug 31, 6:20 am
129scrollbar replacement simplebarAug 31, 6:20 am
130change the water colour in google maps for an already initialised mapAug 31, 6:20 am
131parallax js scroll testingAug 31, 6:20 am
132mithril testingAug 31, 6:20 am
133validate form data using javascript to check required html elementsAug 31, 6:20 am
134do something later with settimeout or loop with setintervalAug 31, 6:20 am
135tiny mce editor tinymceAug 31, 6:20 am
136clipboard copy jsAug 31, 6:20 am
137json loop load elementsAug 31, 6:20 am
138document ready wordpress jqueryAug 31, 6:20 am
139testing chartjsAug 31, 6:20 am
140access hacker news json firebase api via jqueryAug 31, 6:20 am
141check length of element jqueryAug 31, 6:20 am
142validate email address from stringAug 31, 6:20 am
143set and check a cookie using js cookieAug 31, 6:20 am
144random string generator guidAug 31, 6:20 am
145using regex with replace to replace all instances of something in a stringAug 31, 6:20 am
146digital clock with jqueryAug 31, 6:20 am
147find all elements add class jqueryAug 31, 6:20 am
148load content with jqueryAug 31, 6:20 am
149stacktable jQuery plugin for stacking tables on small screensAug 31, 6:20 am
150jquery clone and append elementsAug 31, 6:20 am
151show the year with jsAug 31, 6:20 am
152get select option form value with jqueryAug 31, 6:20 am
153jquery jqueryui vue script includesAug 31, 6:20 am
154fancybox youtube showing video links in a lightboxAug 31, 6:20 am
155jquery accordionAug 31, 6:20 am
156jqueryui date selectorAug 31, 6:20 am
157using vue and json dataAug 31, 6:20 am
158jqueryui includes css and jsAug 31, 6:20 am
159preserve tabs in textarea when tab key is pressedAug 31, 6:20 am
160using getElementById and innerHTML to change the html of content no jqueryAug 31, 6:20 am
161make clickable element with clickable classAug 31, 6:20 am
162jquery document readyAug 31, 6:20 am
163make any element editableAug 31, 6:20 am
164simple dropdown multi level navigation ul li cssAug 31, 6:20 am
165animate stuff detecting window scroll positionAug 31, 6:20 am
166form elements australian state listAug 31, 6:20 am
167link to an external stylesheetAug 31, 6:20 am
168random emojis copy and pasteAug 31, 6:20 am
169layout homepageAug 31, 6:20 am
170meta refresh reload pageAug 31, 6:20 am
171using foundation 6.4 xy grid basicsAug 31, 6:20 am
172youtube extract thumbnail from video linkAug 31, 6:20 am
173copy image to data uri using chrome base64 encodeAug 31, 6:20 am
174lorem ipsumAug 31, 6:20 am
175make all links target new windowAug 31, 6:20 am
176youtube embed no controls auto play iframeAug 31, 6:20 am
177responsive viewport meta tagAug 31, 6:20 am
178simple dropdown navigation ul li cssAug 31, 6:20 am
179flexbox layout templateAug 31, 6:20 am
180take full page screenshot screencapture using chrome dev toolsAug 31, 6:20 am
181emoji dataAug 31, 6:20 am
182youtube embed iframeAug 31, 6:20 am
183delAug 31, 6:20 am
184video embed full screen all screen sizesAug 31, 6:20 am
185video embed tagAug 31, 6:20 am
186video embed no controlsAug 31, 6:20 am
187form elements new zealand region listAug 31, 6:20 am
188foundation includes cdnjsAug 31, 6:20 am
189use an image to replace bullet in ul listAug 31, 6:20 am
190using mix blend mode and filter grayscale for heroAug 31, 6:20 am
191border box resetAug 31, 6:20 am
192css grid sidebar main content fluid layout with fallbackAug 31, 6:20 am
193bootstrap styled buttonsAug 31, 6:20 am
194color cycle drop shadowAug 31, 6:20 am
195embed and use a ttf font font faceAug 31, 6:20 am
196filter drop shadowAug 31, 6:20 am
197animate cssAug 31, 6:20 am
198css grid sidebar main content fluid layoutAug 31, 6:20 am
199truncate text long titles with text overflow ellipsisAug 31, 6:20 am
200transitions and the easy way to apply themAug 31, 6:20 am
201cycle color using backgroundAug 31, 6:20 am
202css grid for layouts with no rowsAug 31, 6:20 am
203foundation make row full widthAug 31, 6:20 am
204angled divider lineAug 31, 6:20 am
205css grid for layouts and how to use itAug 31, 6:20 am
206recreate marquee element using cssAug 31, 6:20 am
207click through an overlay element pointer eventsAug 31, 6:20 am
208why are people so amazed that a column layout can have a full width elementAug 31, 6:20 am
209margin padding frameworkAug 31, 6:20 am
210more complex responsive tables cssAug 31, 6:20 am
211remove border glow css from textarea on selectAug 31, 6:20 am
212transform rotate an element in cssAug 31, 6:20 am
213transform rotate a hexagon in cssAug 31, 6:20 am
214target internet explorer with css and htmlAug 31, 6:20 am
215darken background image using cssAug 31, 6:20 am
216material design icons google fontAug 31, 6:20 am
217flex align center vertical horizontalAug 31, 6:20 am
218targeting the printed version of a page with media printAug 31, 6:20 am
219simple dropin wordpress dropdown navigation cssAug 31, 6:20 am
220make your images look non squished when not using image backgroundsAug 31, 6:20 am
221css accordion basicsAug 31, 6:20 am
222use font awesome on elements lists ulAug 31, 6:20 am
223set transparent menu over background imageAug 31, 6:20 am
224table border collapseAug 31, 6:20 am
225stack a table using css responsiveAug 31, 6:20 am
226design nice block headerAug 31, 6:20 am
227wordpress get template directoryAug 31, 6:18 am
228check the server method post or get using phpAug 31, 6:17 am
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹