<\\/div>
)';
- var wheel = '(Kivy-\\d\\.\\d\\.\\d)(\\.\\w{4}_$date$_git\\_?\\w\
-{7}-$pyVer$)(-none|_\\d{8}_git_\\w{7}-$pyVer$m)(-$arch$.whl)';
- var date = new Date();
- var yesterday = addZeros(date.getDate() - 1, 2);
- var month = addZeros(date.getMonth() + 1, 2);
- var year = date.getFullYear();
- date = yesterday + month + year;
- wheel = wheel.replace("$date$", date).replace("$pyVer$", pyVer);
- wheel = wheel.replace("$pyVer$", pyVer).replace("$arch$", arch);
- var regex = fileID + htmlGarbage + wheel;
- var text = fromAjax.responseText;
- try {
- whlUrl = prefixUrl + text.match(new RegExp(regex))[1];
- var win = window.open(whlUrl, '_blank');
- if (win) {
- win.focus();
- }
- else {
- alert('Please allow pop-ups for this page!');
- }
- }
- catch (e) {
- alert('No nightly wheel is available yet!');
- }
-}
-
-// getNightly('cp27', 'win32'); for cpXY and win32, win_amd64
-function getNightly(pyVer, arch) {
- var whlURL;
- var driveUrl = 'https://drive.google.com/folderview?id=0B1_HB9J8\
-mZepOV81UHpDbmg5SWM&usp=sharing#list';
- jQuery.ajax = (function(_ajax) {
- var protocol = location.protocol,
- hostname = location.hostname,
- exRegex = RegExp(protocol + '//' + hostname),
- YQL = 'http' + (/^https/.test(protocol)?'s':'') + '://query\
-.yahooapis.com/v1/public/yql?callback=?',
- query = 'select * from html where url="{URL}" and xpath="*"';
- function isExternal(url) {
- return !exRegex.test(url) && /:\/\//.test(url);
- }
- return function(o) {
- var url = o.url;
- if (/get/i.test(o.type) && !/json/i.test(o.dataType) &&
- isExternal(url)) {
- o.url = YQL;
- o.dataType = 'json';
- o.data = {
- q: query.replace(
- '{URL}',
- url + (o.data ?
- (/\?/.test(url) ? '&' : '?') + jQuery.param(o.data)
- : '')
- ),
- format: 'xml'
- };
- if (!o.success && o.complete) {
- o.success = o.complete;
- delete o.complete;
- }
- o.success = (function(_success) {
- return function(data) {
- var rx = /