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
// Path pattern: /issues/[0-9]+/copy/?$ | |
$(function() { | |
$('#copy_from').remove(); | |
}); |
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() { | |
$('#content') | |
.css({ | |
'width': 'auto', | |
'padding-right': '20px' | |
}); | |
var sidebar = $('#sidebar'); | |
var sidebarBaseHeight = sidebar.height(); |
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
// Path pattern: /issues/new | |
// Type : JavaScript | |
$(function() { | |
var trackerChanged = false; | |
$(document).on('change', '#issue_tracker_id', function() { | |
trackerChanged = 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
document.addEventListener('change', function(e) { | |
var target = event.target || event.srcElement; | |
if (target.id == 'selected_id') { | |
// 処理 | |
} | |
}); |
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
document.getElementById('selected_id').addEventListener('change', function(e) { | |
// 処理 | |
}); |
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
package com.enjoyxstudy.svg2pdf; | |
import java.io.BufferedOutputStream; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import org.apache.batik.transcoder.Transcoder; |
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() { | |
var KEYCODE_J = 74; | |
var KEYCODE_K = 75; | |
var EXCEPT_TAG_NAMES = ['input', 'textarea', 'select']; | |
var targetElements = $('#history > div'); | |
var currentIndex = -1; |
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 registerJumpElements(elements) { | |
var KEYCODE_J = 74; | |
var KEYCODE_K = 75; | |
var targetElements = elements; | |
var currentIndex = -1; | |
var scollElement = function(event) { |
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
// Path pattern: /issues/[0-9]+ | |
// Type: JavaScript | |
$(function(){ | |
$(".next-prev-links a:contains(\xab)").attr('accesskey', 'p'); | |
$(".next-prev-links a:contains(\xbb)").attr('accesskey', 'n'); | |
}) |
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
body.project-project1 #top-menu { | |
background-color: #006400; /* dark green */ | |
} | |
body.project-project1 #header { | |
background-color: #008000; /* green */ | |
} |