1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

custom made frame (fixes chrome33+ no shadow)

This commit is contained in:
cTn 2014-01-18 19:21:30 +01:00
parent 81fb798e13
commit 20c62aa938
7 changed files with 143 additions and 68 deletions

17
main.js
View file

@ -17,12 +17,25 @@ ga_tracker.sendAppView('Application Started');
$(document).ready(function() {
// set bounds (default 960x600)
if (screen.height > 600) {
chrome.app.window.current().setBounds({width: 960, height: 600});
chrome.app.window.current().setBounds({width: 962, height: 627});
} else {
$('div#content').height(280);
chrome.app.window.current().setBounds({width: 960, height: 400});
chrome.app.window.current().setBounds({width: 960, height: 427});
}
// bind controls
$('#frame .minimize').click(function() {
chrome.app.window.current().minimize();
});
$('#frame .maximize').click(function() {
});
$('#frame .close').click(function() {
chrome.app.window.current().close();
});
// Tabs
var tabs = $('#tabs > ul');
$('a', tabs).click(function() {
if ($(this).parent().hasClass('active') == false) { // only initialize when the tab isn't already active