cleanup
This commit is contained in:
parent
00e86e3854
commit
f262509adb
11 changed files with 13242 additions and 984 deletions
3
css/jquery.mobile-1.3.1.min.css
vendored
3
css/jquery.mobile-1.3.1.min.css
vendored
File diff suppressed because one or more lines are too long
3370
css/jquery.mobile.css
Normal file
3370
css/jquery.mobile.css
Normal file
File diff suppressed because it is too large
Load diff
BIN
img/icon-58.png
BIN
img/icon-58.png
Binary file not shown.
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 6.3 KiB |
15
index.html
15
index.html
|
@ -5,18 +5,13 @@
|
|||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<title>Feedthemonkey</title>
|
||||
<link rel="stylesheet" href="css/jquery.mobile-1.3.1.min.css" />
|
||||
<title>FeedMonkey</title>
|
||||
|
||||
<!-- Extra Codiqa features -->
|
||||
<link rel="stylesheet" href="css/jquery.mobile.css" />
|
||||
<link rel="stylesheet" href="css/screen.css" />
|
||||
|
||||
<!-- jQuery and jQuery Mobile -->
|
||||
<script src="js/jquery-1.9.1.min.js"></script>
|
||||
<script src="js/jquery.mobile-1.3.1.js"></script>
|
||||
|
||||
<!-- Extra Codiqa features -->
|
||||
<script src="js/codiqa.ext.js"></script>
|
||||
<script src="js/jquery.js"></script>
|
||||
<script src="js/jquery.mobile.js"></script>
|
||||
|
||||
<script src="js/App.js"></script>
|
||||
<script src="js/TinyTinyRSS.js"></script>
|
||||
|
@ -32,7 +27,7 @@
|
|||
Reload
|
||||
</a>
|
||||
<h3>
|
||||
Feedthemonkey
|
||||
FeedMonkey
|
||||
</h3>
|
||||
<span class="ui-btn-right count" data-theme="a">0 / 0</span>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,6 @@ function App() {
|
|||
$("#full").bind("taphold", this.setCurrentUnread.bind(this));
|
||||
|
||||
$(".back").on("vclick", this.setCurrentRead.bind(this));
|
||||
//$(".count").button();
|
||||
|
||||
var _this = this;
|
||||
var aop = function(event, ui) { setTimeout(function() { $("#popup").popup("close") }, 2000) };
|
||||
|
|
|
@ -36,4 +36,4 @@ $(document).bind( "pagebeforechange", function( e, data ) {
|
|||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
127
js/codiqa.ext.js
127
js/codiqa.ext.js
|
@ -1,127 +0,0 @@
|
|||
window.CodiqaControls = {
|
||||
types: {},
|
||||
instances: {},
|
||||
|
||||
define: function(type, control) {
|
||||
control._type = type;
|
||||
this.types[type] = control;
|
||||
},
|
||||
|
||||
register: function(type, id, opts) {
|
||||
var instance = new this.types[type]();
|
||||
instance._type = type;
|
||||
instance._id = id;
|
||||
instance._opts = opts;
|
||||
this.instances[id] = instance;
|
||||
|
||||
if(!this.types[type].prototype._isInited) {
|
||||
this.types[type].prototype.initType();
|
||||
}
|
||||
return instance;
|
||||
},
|
||||
|
||||
init: function() {
|
||||
for(var type in this.types) {
|
||||
this.types[type].prototype.initType();
|
||||
}
|
||||
},
|
||||
|
||||
refresh: function() {
|
||||
for(var x in this.instances) {
|
||||
this.instances[x].refresh && this.instances[x].refresh();
|
||||
}
|
||||
},
|
||||
|
||||
callbackInit: function() {
|
||||
|
||||
},
|
||||
|
||||
getInstances: function(type) {
|
||||
var x, instance, instances = [];
|
||||
for(x in this.instances) {
|
||||
instance = this.instances[x];
|
||||
if(instance._type === type) {
|
||||
instances.push(instance);
|
||||
}
|
||||
}
|
||||
return instances;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
CodiqaControls.GoogleMap = function () {};
|
||||
CodiqaControls.GoogleMap.prototype.initType = function() {
|
||||
if( window.CodiqaControls.getInstances('googlemaps').length ) {
|
||||
if(this._isInited) {
|
||||
if(window.google && window.google.maps) {
|
||||
CodiqaControls.GoogleMap.prototype.callbackInit();
|
||||
}
|
||||
} else {
|
||||
var script = document.createElement('script');
|
||||
script.type = "text/javascript";
|
||||
script.src = "https://maps.googleapis.com/maps/api/js?sensor=true&callback=CodiqaControls.types.googlemaps.prototype.callbackInit";
|
||||
document.getElementsByTagName("head")[0].appendChild(script);
|
||||
this._isInited = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
CodiqaControls.GoogleMap.prototype.callbackInit = function() {
|
||||
var x, instances = window.CodiqaControls.getInstances('googlemaps');
|
||||
for(x = 0; x < instances.length; x++) {
|
||||
instances[x]._opts.ready(instances[x]);
|
||||
}
|
||||
};
|
||||
CodiqaControls.GoogleMap.prototype.refresh = function() {
|
||||
if( this.map && this.el && $(this.el).closest('.ui-page-active').length ) {
|
||||
google.maps.event.trigger(this.map, 'resize');
|
||||
this.center && this.map.setCenter(this.center);
|
||||
}
|
||||
};
|
||||
window.CodiqaControls.define('googlemaps', CodiqaControls.GoogleMap);
|
||||
|
||||
|
||||
(function($) {
|
||||
$.widget('mobile.tabbar', $.mobile.navbar, {
|
||||
_create: function() {
|
||||
// Set the theme before we call the prototype, which will
|
||||
// ensure buttonMarkup() correctly grabs the inheritied theme.
|
||||
// We default to the "a" swatch if none is found
|
||||
var theme = this.element.jqmData('theme') || "a";
|
||||
this.element.addClass('ui-footer ui-footer-fixed ui-bar-' + theme);
|
||||
|
||||
// Make sure the page has padding added to it to account for the fixed bar
|
||||
this.element.closest('[data-role="page"]').addClass('ui-page-footer-fixed');
|
||||
|
||||
|
||||
// Call the NavBar _create prototype
|
||||
$.mobile.navbar.prototype._create.call(this);
|
||||
},
|
||||
|
||||
// Set the active URL for the Tab Bar, and highlight that button on the bar
|
||||
setActive: function(url) {
|
||||
// Sometimes the active state isn't properly cleared, so we reset it ourselves
|
||||
this.element.find('a').removeClass('ui-btn-active ui-state-persist');
|
||||
this.element.find('a[href="' + url + '"]').addClass('ui-btn-active ui-state-persist');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('pagecreate create', function(e) {
|
||||
return $(e.target).find(":jqmData(role='tabbar')").tabbar();
|
||||
});
|
||||
|
||||
$(document).on('pageshow', ":jqmData(role='page')", function(e) {
|
||||
// Grab the id of the page that's showing, and select it on the Tab Bar on the page
|
||||
var tabBar, id = $(e.target).attr('id');
|
||||
|
||||
tabBar = $.mobile.activePage.find(':jqmData(role="tabbar")');
|
||||
if(tabBar.length) {
|
||||
tabBar.tabbar('setActive', '#' + id);
|
||||
}
|
||||
|
||||
window.CodiqaControls.refresh();
|
||||
});
|
||||
|
||||
window.CodiqaControls.init();
|
||||
|
||||
})(jQuery);
|
5
js/jquery-1.9.1.min.js
vendored
5
js/jquery-1.9.1.min.js
vendored
File diff suppressed because one or more lines are too long
9003
js/jquery.js
vendored
Normal file
9003
js/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Feedthemonkey",
|
||||
"description": "A TinyTinyRSS mobile client.",
|
||||
"launch_path": "index.html",
|
||||
"name": "FeedMonkey",
|
||||
"description": "A TinyTinyRSS mobile client with which you can read your RSS feeds and mark them as read on your server. Works also offline.",
|
||||
"launch_path": "/index.html",
|
||||
"icons": {
|
||||
"58": "/img/icon-58.png",
|
||||
"60": "/img/icon-60.png",
|
||||
|
@ -14,7 +14,9 @@
|
|||
"default_locale": "en",
|
||||
"type": "privileged",
|
||||
"permissions": {
|
||||
"systemXHR": {}
|
||||
"systemXHR": {
|
||||
"description": "Connection with your own TinyTinyRSS server."
|
||||
}
|
||||
},
|
||||
"installs_allowed_from": ["*"],
|
||||
"version": "0.1"
|
||||
|
|
Reference in a new issue