{"action":"created","issue":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/41","labels_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/41/comments","events_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/41/events","html_url":"https://github.com/vlachoudis/bCNC/pull/41","id":76937088,"number":41,"title":"Updated pendant HTML file","user":{"login":"jarretluft","id":244025,"avatar_url":"https://avatars.githubusercontent.com/u/244025?v=3","gravatar_id":"","url":"https://api.github.com/users/jarretluft","html_url":"https://github.com/jarretluft","followers_url":"https://api.github.com/users/jarretluft/followers","following_url":"https://api.github.com/users/jarretluft/following{/other_user}","gists_url":"https://api.github.com/users/jarretluft/gists{/gist_id}","starred_url":"https://api.github.com/users/jarretluft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarretluft/subscriptions","organizations_url":"https://api.github.com/users/jarretluft/orgs","repos_url":"https://api.github.com/users/jarretluft/repos","events_url":"https://api.github.com/users/jarretluft/events{/privacy}","received_events_url":"https://api.github.com/users/jarretluft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-16T04:05:13Z","updated_at":"2015-05-18T22:45:51Z","closed_at":"2015-05-18T18:48:09Z","pull_request":{"url":"https://api.github.com/repos/vlachoudis/bCNC/pulls/41","html_url":"https://github.com/vlachoudis/bCNC/pull/41","diff_url":"https://github.com/vlachoudis/bCNC/pull/41.diff","patch_url":"https://github.com/vlachoudis/bCNC/pull/41.patch"},"body":"Hey Vasilis,\r\nI've made some changes to the pendant interface to hopefully make it more compatible with a wider range of browsers (desktop and mobile) as well as simplify some of the coding.\r\nChanges are as follows:\r\n* Updated the web server in CNCPendant.py to return different header information to the browser depending on whether the file extension is CSS, JS, or HTML\r\n* Refactored all javascript to use the jQuery framework. This simplifies the ajax request code, and builds in fixes for browser specific 'anomalies'. \r\n* Added pure.css framework to manage page layout across different browsers and screen sizes.  This allowed me to remove all the tables in the original and use DIVs instead, with the CSS classes handling the positioning of elements in a grid.\r\n* Added functionality for the coolant drop-down as well as spindle\r\n* Added checks for spindle and coolant state in the getState() function to update those drop downs alongside the WCS whenever new info is received in the $G array.\r\n* Added $G status requests in a few places (after a WCS change, or spindle/coolant change, to ensure the bCNC state variable is as up-to-date as possible.  I also added $G and $# requests on loading the pendant to ensure that the variables in bCNC are as up-to-date as possible when updating all the html drop down boxes on the pendant interface.\r\n* Added the FastClick javascript library to improve the speed of the pendant on mobile devices that may be affected by the 300ms lag issue (IOS, android)\r\n\r\nThese changes appear to have fixed some of the problems reported in one of the recent issue requests, and in my testing I have not experienced any further issues with the button action occurring twice on click.\r\n\r\nPlease give this a try and merge in the changes if you think they are helpful to the project.\r\nCheers,\r\n-J."},"comment":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/comments/103239532","html_url":"https://github.com/vlachoudis/bCNC/pull/41#issuecomment-103239532","issue_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/41","id":103239532,"user":{"login":"1bigpig","id":1418825,"avatar_url":"https://avatars.githubusercontent.com/u/1418825?v=3","gravatar_id":"","url":"https://api.github.com/users/1bigpig","html_url":"https://github.com/1bigpig","followers_url":"https://api.github.com/users/1bigpig/followers","following_url":"https://api.github.com/users/1bigpig/following{/other_user}","gists_url":"https://api.github.com/users/1bigpig/gists{/gist_id}","starred_url":"https://api.github.com/users/1bigpig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1bigpig/subscriptions","organizations_url":"https://api.github.com/users/1bigpig/orgs","repos_url":"https://api.github.com/users/1bigpig/repos","events_url":"https://api.github.com/users/1bigpig/events{/privacy}","received_events_url":"https://api.github.com/users/1bigpig/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T22:45:51Z","updated_at":"2015-05-18T22:45:51Z","body":"@vlachoudis I am no web programmer but there is a cool web UI dial on such projects as Rune Audio (volumn and track length round dials).  I do not know what language they are programmed in, but it might be worth a look-- they claim \"free and open sourced\".\r\nhttp://www.runeaudio.com/\r\n\r\nBruce"}}