Skip to content

Instantly share code, notes, and snippets.

@thirdy
Last active November 19, 2015 16:33
Show Gist options
  • Save thirdy/e222edea9d64b7412252 to your computer and use it in GitHub Desktop.
Save thirdy/e222edea9d64b7412252 to your computer and use it in GitHub Desktop.
attempt to have a better poe wiki - the poewiki.net
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>List of unique amulets - Path of Exile Wiki</title>
<script src="http://code.jquery.com/jquery-2.1.4.js"></script>
</head>
<body>
<iframe id="viewer" src="http://pathofexile.gamepedia.com/List_of_unique_amulets" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
Your browser doesn't support iframes
</iframe>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://pathofexile.gamepedia.com/load.php?debug=false&amp;lang=en&amp;modules=ext.curse.footer%2Cnetbar%7Cext.embedVideo%2Crtlcite%7Cext.visualEditor.viewPageTarget.noscript%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.ui.button%7Cskins.vector.styles%7Cz.skins.hydra&amp;only=styles&amp;skin=hydra&amp;*" />
<!--[if lt IE 10]><link rel="stylesheet" href="http://hydra-media.cursecdn.com/hydra/ie.css" media="screen" /><![endif]--><meta name="ResourceLoaderDynamicStyles" content="" />
<link rel="stylesheet" href="http://pathofexile.gamepedia.com/load.php?debug=false&amp;lang=en&amp;modules=site&amp;only=styles&amp;skin=hydra&amp;*" />
<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: pathofexile_gamepedia:resourceloader:filter:minify-css:7:4bb53f61038d1d0c8076eab7dc0679ac */</style>
<title>load demo</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<div id="viewer"></div>
<script>
$.ajaxPrefilter( function (options) {
if (options.crossDomain && jQuery.support.cors) {
var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
//options.url = "http://cors.corsproxy.io/url=" + options.url;
}
});
$( "#viewer" ).load( "http://pathofexile.gamepedia.com/List_of_unique_amulets #content" );
</script>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>List of unique amulets - Path of Exile Wiki</title>
<script src="http://code.jquery.com/jquery-2.1.4.js"></script>
<link rel="stylesheet" href="http://pathofexile.gamepedia.com/load.php?debug=false&amp;lang=en&amp;modules=ext.curse.footer%2Cnetbar%7Cext.embedVideo%2Crtlcite%7Cext.visualEditor.viewPageTarget.noscript%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.ui.button%7Cskins.vector.styles%7Cz.skins.hydra&amp;only=styles&amp;skin=hydra&amp;*" />
<link rel="stylesheet" href="http://pathofexile.gamepedia.com/load.php?debug=false&amp;lang=en&amp;modules=site&amp;only=styles&amp;skin=hydra&amp;*" />
<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: pathofexile_gamepedia:resourceloader:filter:minify-css:7:4bb53f61038d1d0c8076eab7dc0679ac */</style>
<script src=" jquery.tablesorter.js"></script>
</head>
<body>
<div id="viewer"></div>
<script>
$.ajaxPrefilter( function (options) {
if (options.crossDomain && jQuery.support.cors) {
var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
//options.url = "http://cors.corsproxy.io/url=" + options.url;
}
});
$.get( "http://pathofexile.gamepedia.com/List_of_unique_amulets", function(data) {
var content = $('#content', $(data))
$( "#viewer" ).html( content );
$('#viewer table.sortable').each(function(){
$(this).prepend('<thead></thead>')
$(this).find('thead').append($(this).find("tr:eq(0)"));
});
$('#viewer table.sortable').tablesorter( );
} );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment