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
CKEDITOR.editorConfig = function (config) { | |
// 実体参照に変換する文字 | |
config.entities_additional = '#9312,#9313,#9314,#9315,#9316,#9317,#9318,' + | |
'#9319,#9320,#9321,#9322,#9323,#9324,#9325,' + | |
'#9326,#9327,#9328,#9329,#9330,#9331'; | |
// MTタグのエンティティ化を抑止 | |
config.protectedSource.push(/<[\$\/]?mt[\s\S]*?>\n?/g); | |
// href,srcを相対パス化 |
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
javascript:(function(){var a=document.querySelectorAll("#foo .bar"),b,c=a.length,d;for(b=0;b<c;b+=1){d=a[b];d.style.border="3px solid red";}}()); |
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
// See Also: http://www.phpied.com/dynamic-script-and-style-elements-in-ie/ | |
// http://code.skyward-design.net/js/code_19.html | |
var head = document.getElementsByTagName("head")[0], | |
style = document.createElement("style"), | |
def = "body { color: red; }"; | |
head.appendChild(style); | |
if (typeof window.attachEvent === "object" && style.styleSheet) { | |
// Less than IE9 | |
style.styleSheet.cssText = def; |
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
module.exports = function(grunt) { | |
'use strict'; | |
grunt.initConfig({ | |
compass: { | |
dev: { | |
reference: { | |
'htdocs/common/css': 'htdocs/_scss' | |
}, | |
options: { |
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
# MJL | |
MJL.event.add window, "load", -> | |
MJL.enable.heightEqualizer "equalize-col2" | |
groupBy: 2 | |
collect: (parent) -> | |
MJL.getElementsByClassName parent, "content" | |
MJL.enable.rollover "roll", | |
disable: "unroll" | |
return; |
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
'use strict' | |
PROJECT_DIR = '' | |
LIVERELOAD_PORT = 35729 | |
lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }) | |
proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest | |
mountFolder = (connect, dir) -> | |
return connect.static(require('path').resolve(dir)) | |
module.exports = (grunt) -> | |
grunt.initConfig |
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 movePCSiteBtn = document.querySelector(".btn-pcsite a"); | |
function movePCSite(e) { | |
var xhr = new XMLHttpRequest(), | |
url = location.href, | |
pcUrl = url.replace("/sp/", "/"); | |
e.preventDefault(); | |
xhr.open("HEAD", pcUrl, true); | |
xhr.send(); | |
xhr.onreadystatechange = function () { | |
if (xhr.status === 200) { |
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
// labelchecker.js | |
// Forked from formcontrols.js | |
// https://github.com/bgrins/devtools-snippets | |
// Print out label and their controls | |
(function() { | |
var forms = document.querySelectorAll("form"); | |
for (var i = 0, len = forms.length; i < len; 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
<?php | |
/* | |
* Unzip Tool | |
* Unzip files on shared server. | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2013 Hideki Abe | |
*/ |
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 ($) { | |
function CourseMap(elem, options) { | |
this.elem = elem; | |
this.map = null; | |
this.markers = []; | |
this.defaults = { | |
zoom: 16, | |
strokeColor: "#cc0000", | |
strokeOpacity: 1.0, | |
strokeWeight: 2 |
OlderNewer