find : <option [^>]*?value="([^"]+)"[^>]*>([^<]*)</option>
replace : "$1" : "$2",
Done!
/** | |
* Trim a domain to a specific number of levels | |
* | |
* @param string $domain | |
* @param int $levels | |
* | |
* @return string | |
*/ | |
function trim_domain($domain, $levels = 2) | |
{ |
<?php | |
namespace EntityMarshal; | |
class ForeignScope | |
{ | |
/** | |
* @var ForeignScope Singleton instance. | |
*/ | |
private static $instance; |
function keyListener () { | |
var $next; | |
// if (event.keyCode === 37) { // left | |
// | |
// } | |
if (event.keyCode === 38) { // up | |
$next = $customerTypeOptionsItems.find('.active').prev(); | |
if ($next.length === 0) { |
(function ($) { | |
var myP = function (arg) { | |
this.init('<p />'); | |
if (typeof $.fn.persist$ === 'function') { | |
this.persist$(); | |
} | |
this.text(arg); |
(function ($) { | |
var objCollection = []; | |
$.fn.persist$ = function (override) { | |
var current = this.data('oid'); | |
if (typeof current === 'undefined') { | |
var next = objCollection.length; | |
(function ($) { | |
var intervalId; | |
var intervalCallback; | |
var frameInterval = 50; | |
var iterationCount = 0; | |
var collection = []; | |
$.attention = { | |
effectClasses : { |
$.iris = function (container, minHeight, maxHeight, keepInSightSelector, callback) { | |
var self = this; | |
var timeout = null; | |
var $container = $(container); | |
function handleKeepInSight () { | |
if (!keepInSightSelector) { | |
return; | |
} |
function select_contents(element) { | |
var selection = window.getSelection(); | |
var range = document.createRange(); | |
range.selectNodeContents(element); | |
selection.removeAllRanges(); | |
selection.addRange(range); | |
} |