Skip to content

Instantly share code, notes, and snippets.

/**
* Convert iframes to divs via ajax iframe_to_div jQuery Plugin
*
* Uses javascript to replace iframes with divs containing their source content
* by loading via ajax. If you use this to load vanilla html snippets, this has the
* effect of applying the page's css to your vanilla html snippet.
*
* This will not work if the iframe src is not a relative link due to ajax restrictions across domains.
*
* As an example:
// http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
jQuery.githubUserRepositories = function(username, callback) {
jQuery.getJSON("https://api.github.com/users/" + username + "/repos?callback=?", callback);
}
jQuery.fn.loadRepositories = function(username) {
this.html("<span>Querying GitHub for repositories...</span>");
var target = this;
// OnManagerTreePrerender,OnManagerTreeRender
// Autor: Dmi3yy
// Version: 0.2
// 2016-10-11 added expand all when focus on search
// 2016-10-11 added category accordion
// 2016-10-10 added live search/filtering
// 2016-10-06 added configuration option to use icons or not
// 2016-10-05 tabs have icons instead of text shortcut now
// 2016-10-01 modified by Piotr Matysiak (pmfx) to respect MODX roles (hasPermission)
@Nicola1971
Nicola1971 / MODxRE2-login.tpl
Created October 4, 2016 09:22 — forked from pmfx/MODxRE2-login.tpl
MODxRE2 MODX Evolution theme login.tpl
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>MODX CMF Manager Login</title>
<meta http-equiv="content-type" content="text/html; charset=[+modx_charset+]" />
<meta name="robots" content="noindex, nofollow" />
<style type="text/css">
body {
font-family: Arial, HelveticaNeue, "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
}
@Nicola1971
Nicola1971 / MODxRE2-style.css
Last active October 4, 2016 09:23 — forked from pmfx/MODxRE2-style.css
MODxRE2 MODX Evolution theme. Based on new MODX Revolution theme and build on top of MODxRE (new styles start from line 2640)
/* -------------------------[ Neutralize styles, fonts and viewport ]--- */
* html {
overflow-x: hidden;
overflow-y: auto;
}
/* for IE6 */
/*****************************************************************
* Custom CSS Stylesheet. You can add any custom CSS selectors here after the comment line
* They will be given the highest priority on any elements on the forum
* Customize your forum color scheme in one click: www.sitesplat.com/phpBB3/
* **************************************************************
*
* FLATBOOTS @SiteSplat.com - Custom CSS STYLESHEET -
*
* **************************************************************
*****************************************************************/