Skip to content

Commit

Permalink
syntaxhighlighterを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki384 committed Jun 11, 2020
1 parent 9c590a1 commit db9b429
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 389 deletions.
14 changes: 7 additions & 7 deletions guides/assets/javascripts/responsive-tables.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(function() {
var switched = false;
$("table").not(".syntaxhighlighter").addClass("responsive");
$("table").addClass("responsive");
var updateTables = function() {
if (($(window).width() < 767) && !switched ){
switched = true;
Expand All @@ -16,24 +16,24 @@ $(document).ready(function() {
});
}
};

$(window).load(updateTables);
$(window).bind("resize", updateTables);


function splitTable(original)
{
original.wrap("<div class='table-wrapper' />");

var copy = original.clone();
copy.find("td:not(:first-child), th:not(:first-child)").css("display", "none");
copy.removeClass("responsive");

original.closest(".table-wrapper").append(copy);
copy.wrap("<div class='pinned' />");
original.wrap("<div class='scrollable' />");
}

function unsplitTable(original) {
original.closest(".table-wrapper").find(".pinned").remove();
original.unwrap();
Expand Down
20 changes: 0 additions & 20 deletions guides/assets/javascripts/syntaxhighlighter.js

This file was deleted.

16 changes: 0 additions & 16 deletions guides/assets/stylesheets/fixes.css

This file was deleted.

226 changes: 0 additions & 226 deletions guides/assets/stylesheets/syntaxhighlighter/shCore.css

This file was deleted.

116 changes: 0 additions & 116 deletions guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css

This file was deleted.

Loading

0 comments on commit db9b429

Please sign in to comment.