Skip to content

Instantly share code, notes, and snippets.

💭
available for freelance job

Daksa Media.Inc daksamedia

💭
available for freelance job
Block or report user

Report or block daksamedia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daksamedia
daksamedia / CORDOVA - MAC EMULATE
Last active Aug 9, 2019
Cordova Instruction to Emulate
View CORDOVA - MAC EMULATE
CORDOVA - MAC EMULATE
Android
- Install JDK
- Install Android Studio & SDK
- Install emulator
- Install Brew cli
- Install Gradle from Brew
View kp_new.js
function getdata(index,itemArr,cat,type){
$.ajax({
url:url,
method:'POST',
data : "itemIds="+itemArr,
success:function(res){
var food1 = eval(res);
if(type=="NORMAL" || type==undefined){
for(var i=0;i < food1.length;i++){
View kp.js
function getItemKp(itemdIds, callback, loadMoreOptions){
if(itemdIds.length > 0){
$.ajax({
type : "POST", url : baseUrl + "/kp/itemCache", data : "itemIds="+itemdIds , timeout: 5000, success : function(data) {
/** list Property
*
* data.id item Id
* data.title item name
View gist:b255a3c37a9a677d457a672ee40947a8
var obj = document.getElementById('partitioned');
obj.addEventListener("keydown", stopCarret);
obj.addEventListener("keyup", stopCarret);
function stopCarret() {
if (obj.value.length > 3){
setCaretPosition(obj, 3);
}
}
View otp_input.js
var obj = document.getElementById('partitioned');
obj.addEventListener("keydown", stopCarret);
obj.addEventListener("keyup", stopCarret);
function stopCarret() {
if (obj.value.length > 3){
setCaretPosition(obj, 3);
}
}
@daksamedia
daksamedia / getURLParam.js
Last active Jun 13, 2018
READ PARAMETER (JQUERY)
View getURLParam.js
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
@daksamedia
daksamedia / cordova-plugin-camera-index.html
Created Jun 10, 2018 — forked from AysadKozanoglu/cordova-plugin-camera-index.html
Cordova Camera Plugin cordova-plugin-camera upload jquery ajax to server request
View cordova-plugin-camera-index.html
<!DOCTYPE html>
<!-- Aysad Kozanoglu -->
<html>
<head>
<title>foto cek</title>
<style>
html {
-webkit-user-select: none;
}
</style>
You can’t perform that action at this time.