}
}
-function cache(url) {
- return url.replace('://', '://ne.edgecastcdn.net/8003A4/');
-}
-
var swap_, swap = function (on, off, time) {
setTimeout(swap_(on, off, time), time);
};
var idc = encodeURIComponent(id);
var name = package.name;
var icon = 'cydia://package-icon/' + idc;
+
var api = 'http://cydia.saurik.com/api/';
+ var capi = 'http://cache.cydia.saurik.com/api/';
var support = package.support;
$("#name").html(name);
space("#latest", package.latest, 96);
- $.xhr(cache(api + 'package/' + idc), 'GET', {}, null, {
+ $.xhr(capi + 'package/' + idc, 'GET', {}, null, {
success: function (value) {
value = eval(value);
if (typeof value.notice == "undefined")
$(".notice").addClass("deleted");
else
- $("#notice-src")[0].outerHTML = '<iframe' +
- ' class="notice"' +
- ' id="notice-src"' +
- ' frameborder="0"' +
- ' width="320"' +
- ' height="0"' +
- ' target="_top"' +
- ' src="' + $.xml(value.notice) + '"' +
- ' onload="onframe(' + "'notice-src', 'notice'" + ')"' +
- '></iframe>';
+ $("#notice-src").src(value.notice);
if (typeof value.rating == "undefined")
$(".rating").addClass("deleted");
$(".depiction").addClass("deleted");
else {
$(".description").addClass("deleted");
-
- $("#depiction-src")[0].outerHTML = '<iframe' +
- ' class="depiction"' +
- ' id="depiction-src"' +
- ' frameborder="0"' +
- ' width="320"' +
- ' height="0"' +
- ' target="_top"' +
- ' src="' + $.xml(depiction) + '"' +
- ' onload="onframe(' + "'depiction-src', 'depiction'" + ')"' +
- '></iframe>';
+ $("#depiction-src").src(depiction);
}
var description = package.longDescription;
' width="320"' +
' height="0"' +
' target="_top"' +
- ' onload="onframe(' + "'notice-src', 'notice'" + ')"' +
'></iframe>';
var depiction = $("#depiction-src");
' width="320"' +
' height="0"' +
' target="_top"' +
- ' onload="onframe(' + "'depiction-src', 'depiction'" + ')"' +
+ ' onload_="loaded()"' +
'></iframe>';
special_();