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 search_options = { | |
"styleName": "EtichettaLateraleCitta", // required (Il nome dello stile di carattere da applicare) | |
"fontName": "Poppins", // optional (Il nome del font da cercare) | |
"fontStyle": "Bold", // optional (Il nome dello stile del font da cercare) | |
"fontSize": 12, // optional (La dimensione del font da cercare) | |
"fontColor": "ColoreEuropa", // optional (Il nome del colore del font da cercare) | |
"searcgString": "", // optional (La stringa da cercare) | |
"ignoreCurrentStyle": false // optional (Se true, ignora lo stile di carattere corrente) | |
} |
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
class LoadHtmlpartials { | |
constructor() { | |
this.loadPartials(); | |
} | |
loadPartials() { | |
document.querySelectorAll('html-partial').forEach(function(htmlPartialWrapper) { | |
let htmlPartialSrc = htmlPartialWrapper.getAttribute('src'), | |
thisCallback = htmlPartialWrapper.getAttribute('callback'); |
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 | |
/** | |
* WordPress Shortcode Example | |
* Usage: [shortcode_example option="..."] | |
*/ | |
// Shortcode Handle Function | |
function shortcode_example_function( $atts ) { | |
$a = shortcode_atts( array( | |
'option' => "This is the default option value" // default options array |
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 | |
/* VERY SIMPLE UTILITIES */ | |
/* ************************************** */ | |
/* | |
* PRINT OBJECT/ARRAY | |
* Print and object or array inside <pre></pre> tags | |
*/ | |
function printObject($object) { | |
echo "<pre>"; |
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
/* | |
Form Validator 2.1.1 by Gix075 | |
=================================================================== | |
This is an useful class that you can use to validate any forms. | |
*/ | |
function formValidator(globOpts) { | |
var defaults = { | |
bootstrap: true, |
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 splitString(element, spanClass) { | |
var str = $(element).text(); | |
str = str.split(""); | |
var markup = ""; | |
for (var i=0; i<str.length; i++) { | |
//if(str[i] == " ") str[i] = " " | |
var spanCssClass= spanClass; | |
if(str[i] == " ") { | |
spanCssClass = spanClass+"-space"; | |
str[i] = ""; |
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
/*! | |
============================================================== | |
Easy Readmore - version 1.0.0 | |
http://factory.brainleaf.eu/tools/jquery/easy-readmore | |
============================================================== | |
*/ | |
function easyReadmore (options) { | |
var defaults = { |
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
/* easyGMap 0.6.0 | |
* -------------------------------------------- | |
* GoogleMap API and jQuery nedeed! | |
* This is the latest version of this tool. | |
* See documentation at http://factory.brainleaf.eu/tools/jquery/easy-gmap | |
*/ | |
function easyGMap() { | |
this.getMap = function(opts) { | |
this.infoBoxMarkup = '<div class="easygmap_mapinfobox">'+ |