This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ellypos.rmq; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
/** | |
* Log mock. Provides same method signatures as android logger or at least minimal replacement | |
* @author mgustin | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package http; | |
import java.io.*; | |
import java.net.HttpURLConnection; | |
import java.net.Proxy; | |
import java.net.URL; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import moped.common.Utils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myStyle = function getStyle(className_) { | |
var styleSheets = window.document.styleSheets; | |
var styleSheetsLength = styleSheets.length; | |
for(var i = 0; i < styleSheetsLength; i++){ | |
var classes = styleSheets[i].rules || styleSheets[i].cssRules; | |
if (!classes) | |
continue; | |
var classesLength = classes.length; | |
for (var x = 0; x < classesLength; x++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>tabs demo</title> | |
<style type="text/css"> | |
.tabs ul { | |
list-style-type: none; | |
margin: 0 2em; | |
padding: 0; | |
cursor: pointer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>templator2</title> | |
<style type="text/css"> | |
html, body { | |
font-size: 14px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>templator</title> | |
<style type="text/css"> | |
#content { | |
padding: 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<title>HTML5Template</title> | |
<style type="text/css"> | |
html, body { height: 100%; width: 100%; } /* occupy whole viewport. */ | |
body,div,p { | |
/* css reset techique; We are resetting the UserAgent (browser) style */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Creating simple page navigator with remote pages</title> | |
<style type="text/css"> | |
div.viewport { | |
position: relative; | |
border-collapse: collapse; | |
width: 800px; | |
height: 200px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is the extension function for table plugin (My params are array of key value pairs). Make this script available to your //web page which is utilizing the table plugin | |
$.fn.dataTableExt.oApi.fnReloadAjax = function (oSettings, sNewSource, myParams ) { | |
if ( oSettings.oFeatures.bServerSide ) { | |
oSettings.aoServerParams = []; | |
oSettings.aoServerParams.push({"sName": "user", | |
"fn": function (aoData) { | |
for (var i=0;i<myParams.length;i++){ | |
aoData.push( {"name" : myParams[i][0], "value" : myParams[i][1]}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple logging framwork | |
* Supports Chrome or Firefox | |
* Usage: | |
* | |
* AppHtml5.log.info('Dropdown value changed to something new!'); | |
* | |
*/ | |
//create logging functions |
NewerOlder