Last active
November 15, 2015 23:32
-
-
Save takuya0301/9088612 to your computer and use it in GitHub Desktop.
Google gadget for embedding Gist.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Module> | |
<ModulePrefs title="Gist"> | |
<Require feature="dynamic-height"/> | |
</ModulePrefs> | |
<UserPref name="id" display_name="Gist ID" required="true" default_value="9088612"/> | |
<UserPref name="font_size" display_name="Font size (px)" required="true" default_value="12"/> | |
<UserPref name="line_height" display_name="Line height (px)" required="true" default_value="16"/> | |
<Content type="html"> | |
<![CDATA[ | |
<style type="text/css"> | |
body, td, div, span, p { | |
font-family: Consolas, "Liberation Mono", Courier, monospace; | |
font-size: __UP_font_size__px; | |
line-height: __UP_line_height__px; | |
} | |
.gist .gist-file .gist-data { | |
background-color: white !important; | |
} | |
.gist .gist-file .gist-data .line-numbers { | |
background-color: white !important; | |
} | |
</style> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script src="https://gist.github.com/__UP_id__.js"></script> | |
<script> | |
$(function(){ | |
$('.gist-meta').children('a').attr('target', '_blank'); | |
gadgets.window.adjustHeight(); | |
}); | |
</script> | |
]]> | |
</Content> | |
</Module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this still work? I copied and pasted into my own app, and was unable to see anything happen even with the
nogadgetcache
set to 1.