keiser-echip-utilities
Advanced tools
Comparing version 0.1.3 to 0.1.4
220
dist/keu.js
@@ -11,166 +11,256 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.keu = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
models: [0x1121, 0x112A], | ||
name: 'Leg Extension A250' | ||
name: 'Leg Extension', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1122, 0x112B], | ||
name: 'Leg Extension A250, Range Limiter' | ||
name: 'Leg Extension', | ||
line: 'A250', | ||
extra: 'Range Limiter', | ||
}, { | ||
models: [0x1131, 0x113A], | ||
name: 'Leg Extension A300 120 degree' | ||
name: 'Leg Extension', | ||
line: 'A300', | ||
extra: '120 Degree', | ||
}, { | ||
models: [0x1132, 0x113B], | ||
name: 'Leg Extension A300 90 degree' | ||
name: 'Leg Extension', | ||
line: 'A300', | ||
extra: '90 Degree', | ||
}, { | ||
models: [0x1221, 0x122A], | ||
name: 'Leg Curl A250' | ||
name: 'Leg Curl', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1222, 0x122B], | ||
name: 'Leg Curl A250, Range Limiter' | ||
name: 'Leg Curl', | ||
line: 'A250', | ||
extra: 'Range Limiter', | ||
}, { | ||
models: [0x1231, 0x123A], | ||
name: 'Leg Curl A300' | ||
name: 'Leg Curl', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1321, 0x132A], | ||
name: 'Chest Press A250' | ||
name: 'Chest Press', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1331, 0x133A], | ||
name: 'Chest Press A300' | ||
name: 'Chest Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1335, 0x133B], | ||
name: 'Biaxial Chest Press A300' | ||
name: 'Biaxial Chest Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1336, 0x133C], | ||
name: 'Straight Push Chest Press A300' | ||
name: 'Straight Push Chest Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1337], | ||
name: 'Straight Push Chest Press A300 2010-3-1' | ||
name: 'Straight Push Chest Press', | ||
line: 'A300', | ||
extra: '2010-3-1', | ||
}, { | ||
models: [0x1338], | ||
name: 'Straight Push Chest Press A300 2010-9-1' | ||
name: 'Straight Push Chest Press', | ||
line: 'A300', | ||
extra: '2010-9-1', | ||
}, { | ||
models: [0x1431, 0x143A], | ||
name: 'Shoulder Raise A300' | ||
name: 'Shoulder Raise', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1531, 0x153A], | ||
name: 'Squat A300' | ||
name: 'Squat', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1532, 0x153B], | ||
name: 'Squat A300' | ||
name: 'Squat', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1621, 0x162A], | ||
name: 'Military Press A250' | ||
name: 'Military Press', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1631, 0x163A], | ||
name: 'Military Press A300' | ||
name: 'Military Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1721, 0x172A], | ||
name: 'Arm Curl A250' | ||
name: 'Arm Curl', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1736, 0x173B], | ||
name: 'Arm Curl A300' | ||
name: 'Arm Curl', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1831, 0x183A], | ||
name: 'Shrug A300' | ||
name: 'Shrug', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1921, 0x192A], | ||
name: 'Tricep A250' | ||
name: 'Tricep', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1931, 0x193A], | ||
name: 'Tricep A300' | ||
}, { | ||
models: [0x1937], | ||
name: 'Engineering Test Tricep, one sided' | ||
}, { | ||
name: 'Tricep', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2021, 0x202A], | ||
name: 'Upper Back A250' | ||
name: 'Upper Back', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2031, 0x2035, 0x203A, 0x203B], | ||
name: 'Upper Back A300' | ||
name: 'Upper Back', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2121, 0x212A], | ||
name: 'Lat Pulldown A250' | ||
name: 'Lat Pulldown', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2131, 0x213A], | ||
name: 'Lat Pulldown A300' | ||
name: 'Lat Pulldown', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2221, 0x222A], | ||
name: 'Seated Butterfly A250' | ||
name: 'Seated Butterfly', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2231, 0x223A], | ||
name: 'Seated Butterfly A300' | ||
name: 'Seated Butterfly', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2235, 0x223B], | ||
name: 'Seated Butterfly A350' | ||
name: 'Seated Butterfly', | ||
line: 'A350', | ||
extra: '', | ||
}, { | ||
models: [0x2331, 0x233A], | ||
name: 'Abductor A300' | ||
name: 'Abductor', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2431, 0x243A], | ||
name: 'Adductor A300' | ||
name: 'Adductor', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2521, 0x252A], | ||
name: 'Leg Press A250' | ||
name: 'Leg Press', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2531, 0x253A], | ||
name: 'Leg Press A300' | ||
name: 'Leg Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2621, 0x262A], | ||
name: 'Standing Hip A250' | ||
name: 'Standing Hip', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2631, 0x263A], | ||
name: 'Standing Hip A300' | ||
name: 'Standing Hip', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2721, 0x272A], | ||
name: 'Abdominal A250' | ||
name: 'Abdominal', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2731, 0x273A], | ||
name: 'Abdominal A300' | ||
name: 'Abdominal', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2821, 0x282A], | ||
name: 'Lower Back A250' | ||
name: 'Lower Back', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2822, 0x282B], | ||
name: 'Lower Back A250, Range Limiter' | ||
name: 'Lower Back', | ||
line: 'A250', | ||
extra: 'Range Limiter', | ||
}, { | ||
models: [0x2831, 0x2836, 0x283A, 0x283B], | ||
name: 'Lower Back A300' | ||
name: 'Lower Back', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2936, 0x293A], | ||
name: 'Seated Calf A300' | ||
name: 'Seated Calf', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x3000, 0x300A], | ||
name: 'Performance Zone' | ||
name: 'Performance Zone', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3010, 0x301A], | ||
name: 'Performance Trainer' | ||
name: 'Performance Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3020, 0x302A], | ||
name: 'Functional Trainer' | ||
name: 'Functional Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3030, 0x303A], | ||
name: 'Triple Trainer' | ||
name: 'Triple Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3040, 0x304A], | ||
name: 'Functional Wall Trainer' | ||
name: 'Functional Wall Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3100], | ||
name: 'Rack, Seat Settings' | ||
name: 'Rack', | ||
line: 'Power Rack', | ||
extra: 'Seat Settings', | ||
}, { | ||
models: [0x3103, 0x3104, 0x3105, 0x3106, 0x3110, 0x3111, 0x3120], | ||
name: 'Rack, Iron Weight' | ||
name: 'Rack', | ||
line: 'Power Rack', | ||
extra: 'Iron Weight', | ||
}, { | ||
models: [0x3231], | ||
name: 'Single Runner' | ||
name: 'Single Runner', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x3232, 0x323A], | ||
name: 'Dual Runner' | ||
}, { | ||
models: [0x9990], | ||
name: 'One arm bandit test stand' | ||
}, { | ||
models: [0x9999], | ||
name: 'Pressure Gauge PSI' | ||
}, { | ||
models: [0x9998], | ||
name: 'Pressure Gauge KPA' | ||
}]; | ||
name: 'Dual Runner', | ||
line: 'A300', | ||
extra: '', | ||
},]; | ||
@@ -177,0 +267,0 @@ /***************************************** |
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.keu=e()}}(function(){return function e(n,a,t){function o(s,r){if(!a[s]){if(!n[s]){var m="function"==typeof require&&require;if(!r&&m)return m(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var l=a[s]={exports:{}};n[s][0].call(l.exports,function(e){var a=n[s][1][e];return o(a?a:e)},l,l.exports,e,n,a,t)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s<t.length;s++)o(t[s]);return o}({1:[function(e,n,a){n.exports=function(){"use strict";var e={};const n=[{models:[4385,4394],name:"Leg Extension A250"},{models:[4386,4395],name:"Leg Extension A250, Range Limiter"},{models:[4401,4410],name:"Leg Extension A300 120 degree"},{models:[4402,4411],name:"Leg Extension A300 90 degree"},{models:[4641,4650],name:"Leg Curl A250"},{models:[4642,4651],name:"Leg Curl A250, Range Limiter"},{models:[4657,4666],name:"Leg Curl A300"},{models:[4897,4906],name:"Chest Press A250"},{models:[4913,4922],name:"Chest Press A300"},{models:[4917,4923],name:"Biaxial Chest Press A300"},{models:[4918,4924],name:"Straight Push Chest Press A300"},{models:[4919],name:"Straight Push Chest Press A300 2010-3-1"},{models:[4920],name:"Straight Push Chest Press A300 2010-9-1"},{models:[5169,5178],name:"Shoulder Raise A300"},{models:[5425,5434],name:"Squat A300"},{models:[5426,5435],name:"Squat A300"},{models:[5665,5674],name:"Military Press A250"},{models:[5681,5690],name:"Military Press A300"},{models:[5921,5930],name:"Arm Curl A250"},{models:[5942,5947],name:"Arm Curl A300"},{models:[6193,6202],name:"Shrug A300"},{models:[6433,6442],name:"Tricep A250"},{models:[6449,6458],name:"Tricep A300"},{models:[6455],name:"Engineering Test Tricep, one sided"},{models:[8225,8234],name:"Upper Back A250"},{models:[8241,8245,8250,8251],name:"Upper Back A300"},{models:[8481,8490],name:"Lat Pulldown A250"},{models:[8497,8506],name:"Lat Pulldown A300"},{models:[8737,8746],name:"Seated Butterfly A250"},{models:[8753,8762],name:"Seated Butterfly A300"},{models:[8757,8763],name:"Seated Butterfly A350"},{models:[9009,9018],name:"Abductor A300"},{models:[9265,9274],name:"Adductor A300"},{models:[9505,9514],name:"Leg Press A250"},{models:[9521,9530],name:"Leg Press A300"},{models:[9761,9770],name:"Standing Hip A250"},{models:[9777,9786],name:"Standing Hip A300"},{models:[10017,10026],name:"Abdominal A250"},{models:[10033,10042],name:"Abdominal A300"},{models:[10273,10282],name:"Lower Back A250"},{models:[10274,10283],name:"Lower Back A250, Range Limiter"},{models:[10289,10294,10298,10299],name:"Lower Back A300"},{models:[10550,10554],name:"Seated Calf A300"},{models:[12288,12298],name:"Performance Zone"},{models:[12304,12314],name:"Performance Trainer"},{models:[12320,12330],name:"Functional Trainer"},{models:[12336,12346],name:"Triple Trainer"},{models:[12352,12362],name:"Functional Wall Trainer"},{models:[12544],name:"Rack, Seat Settings"},{models:[12547,12548,12549,12550,12560,12561,12576],name:"Rack, Iron Weight"},{models:[12849],name:"Single Runner"},{models:[12850,12858],name:"Dual Runner"},{models:[39312],name:"One arm bandit test stand"},{models:[39321],name:"Pressure Gauge PSI"},{models:[39320],name:"Pressure Gauge KPA"}];return e.getMachineDetails=function(e){for(var a=0;a<n.length;a++)for(var t=0;t<n[a].models.length;t++)if(n[a].models[t]==e)return n[a]},e}()},{}],2:[function(e,n,a){n.exports=function(){"use strict";var n={};return n.machine=e("./machine"),n.messenger=e("./messenger"),n}()},{"./machine":1,"./messenger":3}],3:[function(e,n,a){n.exports=function(){"use strict";var e={};const n={TYPE:{RESPONSE:"response",REQUEST:"request"},ACTION:{CONNECT:"connect",ECHIP_SET:"echip-set",ECHIP_GET:"echip-get"}};var a,t,o,i,s,r={initialized:!1,connected:!1,enabled:!1,actions:{eChipSet:!1,eChipGet:!1}},m=function(e){r.initialized?c(e.data):u(e)},d=function(e){a&&t&&a.postMessage(JSON.stringify(e),t)},l=function(e,n,a,t){var o={id:e,type:n,action:a,data:t};d(o)},u=function(e){var i=JSON.parse(e.data);(i||{}).action&&i.action===n.ACTION.CONNECT&&(a=e.source,t=e.origin,o=i.id,r.initialized=!0,r.enabled&&f())},c=function(e){if(r.enabled){var a=JSON.parse(e);if((a||{}).id)switch(a.action){case n.ACTION.ECHIP_SET:s(a.data,function(){p(a.id)});break;case n.ACTION.ECHIP_GET:i(a.data,function(e){A(a.id,e)})}}},f=function(){if(o){var e={actions:[]};r.actions.eChipSet&&e.actions.push(n.ACTION.ECHIP_SET),r.actions.eChipGet&&e.actions.push(n.ACTION.ECHIP_GET),l(o,n.TYPE.RESPONSE,n.ACTION.CONNECT,e)}},A=function(e,a){l(e,n.TYPE.RESPONSE,n.ACTION.ECHIP_GET,a)},p=function(e){var a={success:!0};l(e,n.TYPE.RESPONSE,n.ACTION.ECHIP_SET,a)};return e.enable=function(e,n){"function"==typeof e&&(r.actions.eChipGet=!0,i=e),"function"==typeof n&&(r.actions.eChipSet=!0,s=n),r.enabled=!0,r.initialized&&f()},e.disable=function(){r.enabled=!1,r.actions.eChipGet=!1,r.actions.eChipSet=!1,i=null,s=null,r.initialized&&f()},window.addEventListener("message",m),e}()},{}]},{},[2])(2)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.keu=e()}}(function(){return function e(n,t,i){function a(l,o){if(!t[l]){if(!n[l]){var s="function"==typeof require&&require;if(!o&&s)return s(l,!0);if(r)return r(l,!0);var m=new Error("Cannot find module '"+l+"'");throw m.code="MODULE_NOT_FOUND",m}var d=t[l]={exports:{}};n[l][0].call(d.exports,function(e){var t=n[l][1][e];return a(t?t:e)},d,d.exports,e,n,t,i)}return t[l].exports}for(var r="function"==typeof require&&require,l=0;l<i.length;l++)a(i[l]);return a}({1:[function(e,n,t){n.exports=function(){"use strict";var e={};const n=[{models:[4385,4394],name:"Leg Extension",line:"A250",extra:""},{models:[4386,4395],name:"Leg Extension",line:"A250",extra:"Range Limiter"},{models:[4401,4410],name:"Leg Extension",line:"A300",extra:"120 Degree"},{models:[4402,4411],name:"Leg Extension",line:"A300",extra:"90 Degree"},{models:[4641,4650],name:"Leg Curl",line:"A250",extra:""},{models:[4642,4651],name:"Leg Curl",line:"A250",extra:"Range Limiter"},{models:[4657,4666],name:"Leg Curl",line:"A300",extra:""},{models:[4897,4906],name:"Chest Press",line:"A250",extra:""},{models:[4913,4922],name:"Chest Press",line:"A300",extra:""},{models:[4917,4923],name:"Biaxial Chest Press",line:"A300",extra:""},{models:[4918,4924],name:"Straight Push Chest Press",line:"A300",extra:""},{models:[4919],name:"Straight Push Chest Press",line:"A300",extra:"2010-3-1"},{models:[4920],name:"Straight Push Chest Press",line:"A300",extra:"2010-9-1"},{models:[5169,5178],name:"Shoulder Raise",line:"A300",extra:""},{models:[5425,5434],name:"Squat",line:"A300",extra:""},{models:[5426,5435],name:"Squat",line:"A300",extra:""},{models:[5665,5674],name:"Military Press",line:"A250",extra:""},{models:[5681,5690],name:"Military Press",line:"A300",extra:""},{models:[5921,5930],name:"Arm Curl",line:"A250",extra:""},{models:[5942,5947],name:"Arm Curl",line:"A300",extra:""},{models:[6193,6202],name:"Shrug",line:"A300",extra:""},{models:[6433,6442],name:"Tricep",line:"A250",extra:""},{models:[6449,6458],name:"Tricep",line:"A300",extra:""},{models:[8225,8234],name:"Upper Back",line:"A250",extra:""},{models:[8241,8245,8250,8251],name:"Upper Back",line:"A300",extra:""},{models:[8481,8490],name:"Lat Pulldown",line:"A250",extra:""},{models:[8497,8506],name:"Lat Pulldown",line:"A300",extra:""},{models:[8737,8746],name:"Seated Butterfly",line:"A250",extra:""},{models:[8753,8762],name:"Seated Butterfly",line:"A300",extra:""},{models:[8757,8763],name:"Seated Butterfly",line:"A350",extra:""},{models:[9009,9018],name:"Abductor",line:"A300",extra:""},{models:[9265,9274],name:"Adductor",line:"A300",extra:""},{models:[9505,9514],name:"Leg Press",line:"A250",extra:""},{models:[9521,9530],name:"Leg Press",line:"A300",extra:""},{models:[9761,9770],name:"Standing Hip",line:"A250",extra:""},{models:[9777,9786],name:"Standing Hip",line:"A300",extra:""},{models:[10017,10026],name:"Abdominal",line:"A250",extra:""},{models:[10033,10042],name:"Abdominal",line:"A300",extra:""},{models:[10273,10282],name:"Lower Back",line:"A250",extra:""},{models:[10274,10283],name:"Lower Back",line:"A250",extra:"Range Limiter"},{models:[10289,10294,10298,10299],name:"Lower Back",line:"A300",extra:""},{models:[10550,10554],name:"Seated Calf",line:"A300",extra:""},{models:[12288,12298],name:"Performance Zone",line:"Infinity",extra:""},{models:[12304,12314],name:"Performance Trainer",line:"Infinity",extra:""},{models:[12320,12330],name:"Functional Trainer",line:"Infinity",extra:""},{models:[12336,12346],name:"Triple Trainer",line:"Infinity",extra:""},{models:[12352,12362],name:"Functional Wall Trainer",line:"Infinity",extra:""},{models:[12544],name:"Rack",line:"Power Rack",extra:"Seat Settings"},{models:[12547,12548,12549,12550,12560,12561,12576],name:"Rack",line:"Power Rack",extra:"Iron Weight"},{models:[12849],name:"Single Runner",line:"A300",extra:""},{models:[12850,12858],name:"Dual Runner",line:"A300",extra:""}];return e.getMachineDetails=function(e){for(var t=0;t<n.length;t++)for(var i=0;i<n[t].models.length;i++)if(n[t].models[i]==e)return n[t]},e}()},{}],2:[function(e,n,t){n.exports=function(){"use strict";var n={};return n.machine=e("./machine"),n.messenger=e("./messenger"),n}()},{"./machine":1,"./messenger":3}],3:[function(e,n,t){n.exports=function(){"use strict";var e={};const n={TYPE:{RESPONSE:"response",REQUEST:"request"},ACTION:{CONNECT:"connect",ECHIP_SET:"echip-set",ECHIP_GET:"echip-get"}};var t,i,a,r,l,o={initialized:!1,connected:!1,enabled:!1,actions:{eChipSet:!1,eChipGet:!1}},s=function(e){o.initialized?c(e.data):u(e)},m=function(e){t&&i&&t.postMessage(JSON.stringify(e),i)},d=function(e,n,t,i){var a={id:e,type:n,action:t,data:i};m(a)},u=function(e){var r=JSON.parse(e.data);(r||{}).action&&r.action===n.ACTION.CONNECT&&(t=e.source,i=e.origin,a=r.id,o.initialized=!0,o.enabled&&f())},c=function(e){if(o.enabled){var t=JSON.parse(e);if((t||{}).id)switch(t.action){case n.ACTION.ECHIP_SET:l(t.data,function(){A(t.id)});break;case n.ACTION.ECHIP_GET:r(t.data,function(e){x(t.id,e)})}}},f=function(){if(a){var e={actions:[]};o.actions.eChipSet&&e.actions.push(n.ACTION.ECHIP_SET),o.actions.eChipGet&&e.actions.push(n.ACTION.ECHIP_GET),d(a,n.TYPE.RESPONSE,n.ACTION.CONNECT,e)}},x=function(e,t){d(e,n.TYPE.RESPONSE,n.ACTION.ECHIP_GET,t)},A=function(e){var t={success:!0};d(e,n.TYPE.RESPONSE,n.ACTION.ECHIP_SET,t)};return e.enable=function(e,n){"function"==typeof e&&(o.actions.eChipGet=!0,r=e),"function"==typeof n&&(o.actions.eChipSet=!0,l=n),o.enabled=!0,o.initialized&&f()},e.disable=function(){o.enabled=!1,o.actions.eChipGet=!1,o.actions.eChipSet=!1,r=null,l=null,o.initialized&&f()},window.addEventListener("message",s),e}()},{}]},{},[2])(2)}); |
{ | ||
"name": "keiser-echip-utilities", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Keiser eChip Utilities", | ||
@@ -5,0 +5,0 @@ "main": "./src/main.js", |
@@ -48,3 +48,7 @@ # Keiser eChip Utilities | ||
``` | ||
var onGetRequest = function(){ return getUserData(user.id); }; | ||
var onGetRequest = function(data, onSuccess){ | ||
getUserData(user.id, function(result){ | ||
onSuccess(result); | ||
}); | ||
}; | ||
var onSetRequest = function(data, onSuccess){ | ||
@@ -51,0 +55,0 @@ saveUserData(data); |
@@ -10,166 +10,256 @@ module.exports = function () { | ||
models: [0x1121, 0x112A], | ||
name: 'Leg Extension A250' | ||
name: 'Leg Extension', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1122, 0x112B], | ||
name: 'Leg Extension A250, Range Limiter' | ||
name: 'Leg Extension', | ||
line: 'A250', | ||
extra: 'Range Limiter', | ||
}, { | ||
models: [0x1131, 0x113A], | ||
name: 'Leg Extension A300 120 degree' | ||
name: 'Leg Extension', | ||
line: 'A300', | ||
extra: '120 Degree', | ||
}, { | ||
models: [0x1132, 0x113B], | ||
name: 'Leg Extension A300 90 degree' | ||
name: 'Leg Extension', | ||
line: 'A300', | ||
extra: '90 Degree', | ||
}, { | ||
models: [0x1221, 0x122A], | ||
name: 'Leg Curl A250' | ||
name: 'Leg Curl', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1222, 0x122B], | ||
name: 'Leg Curl A250, Range Limiter' | ||
name: 'Leg Curl', | ||
line: 'A250', | ||
extra: 'Range Limiter', | ||
}, { | ||
models: [0x1231, 0x123A], | ||
name: 'Leg Curl A300' | ||
name: 'Leg Curl', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1321, 0x132A], | ||
name: 'Chest Press A250' | ||
name: 'Chest Press', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1331, 0x133A], | ||
name: 'Chest Press A300' | ||
name: 'Chest Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1335, 0x133B], | ||
name: 'Biaxial Chest Press A300' | ||
name: 'Biaxial Chest Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1336, 0x133C], | ||
name: 'Straight Push Chest Press A300' | ||
name: 'Straight Push Chest Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1337], | ||
name: 'Straight Push Chest Press A300 2010-3-1' | ||
name: 'Straight Push Chest Press', | ||
line: 'A300', | ||
extra: '2010-3-1', | ||
}, { | ||
models: [0x1338], | ||
name: 'Straight Push Chest Press A300 2010-9-1' | ||
name: 'Straight Push Chest Press', | ||
line: 'A300', | ||
extra: '2010-9-1', | ||
}, { | ||
models: [0x1431, 0x143A], | ||
name: 'Shoulder Raise A300' | ||
name: 'Shoulder Raise', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1531, 0x153A], | ||
name: 'Squat A300' | ||
name: 'Squat', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1532, 0x153B], | ||
name: 'Squat A300' | ||
name: 'Squat', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1621, 0x162A], | ||
name: 'Military Press A250' | ||
name: 'Military Press', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1631, 0x163A], | ||
name: 'Military Press A300' | ||
name: 'Military Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1721, 0x172A], | ||
name: 'Arm Curl A250' | ||
name: 'Arm Curl', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1736, 0x173B], | ||
name: 'Arm Curl A300' | ||
name: 'Arm Curl', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1831, 0x183A], | ||
name: 'Shrug A300' | ||
name: 'Shrug', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x1921, 0x192A], | ||
name: 'Tricep A250' | ||
name: 'Tricep', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x1931, 0x193A], | ||
name: 'Tricep A300' | ||
}, { | ||
models: [0x1937], | ||
name: 'Engineering Test Tricep, one sided' | ||
}, { | ||
name: 'Tricep', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2021, 0x202A], | ||
name: 'Upper Back A250' | ||
name: 'Upper Back', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2031, 0x2035, 0x203A, 0x203B], | ||
name: 'Upper Back A300' | ||
name: 'Upper Back', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2121, 0x212A], | ||
name: 'Lat Pulldown A250' | ||
name: 'Lat Pulldown', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2131, 0x213A], | ||
name: 'Lat Pulldown A300' | ||
name: 'Lat Pulldown', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2221, 0x222A], | ||
name: 'Seated Butterfly A250' | ||
name: 'Seated Butterfly', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2231, 0x223A], | ||
name: 'Seated Butterfly A300' | ||
name: 'Seated Butterfly', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2235, 0x223B], | ||
name: 'Seated Butterfly A350' | ||
name: 'Seated Butterfly', | ||
line: 'A350', | ||
extra: '', | ||
}, { | ||
models: [0x2331, 0x233A], | ||
name: 'Abductor A300' | ||
name: 'Abductor', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2431, 0x243A], | ||
name: 'Adductor A300' | ||
name: 'Adductor', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2521, 0x252A], | ||
name: 'Leg Press A250' | ||
name: 'Leg Press', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2531, 0x253A], | ||
name: 'Leg Press A300' | ||
name: 'Leg Press', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2621, 0x262A], | ||
name: 'Standing Hip A250' | ||
name: 'Standing Hip', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2631, 0x263A], | ||
name: 'Standing Hip A300' | ||
name: 'Standing Hip', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2721, 0x272A], | ||
name: 'Abdominal A250' | ||
name: 'Abdominal', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2731, 0x273A], | ||
name: 'Abdominal A300' | ||
name: 'Abdominal', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2821, 0x282A], | ||
name: 'Lower Back A250' | ||
name: 'Lower Back', | ||
line: 'A250', | ||
extra: '', | ||
}, { | ||
models: [0x2822, 0x282B], | ||
name: 'Lower Back A250, Range Limiter' | ||
name: 'Lower Back', | ||
line: 'A250', | ||
extra: 'Range Limiter', | ||
}, { | ||
models: [0x2831, 0x2836, 0x283A, 0x283B], | ||
name: 'Lower Back A300' | ||
name: 'Lower Back', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x2936, 0x293A], | ||
name: 'Seated Calf A300' | ||
name: 'Seated Calf', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x3000, 0x300A], | ||
name: 'Performance Zone' | ||
name: 'Performance Zone', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3010, 0x301A], | ||
name: 'Performance Trainer' | ||
name: 'Performance Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3020, 0x302A], | ||
name: 'Functional Trainer' | ||
name: 'Functional Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3030, 0x303A], | ||
name: 'Triple Trainer' | ||
name: 'Triple Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3040, 0x304A], | ||
name: 'Functional Wall Trainer' | ||
name: 'Functional Wall Trainer', | ||
line: 'Infinity', | ||
extra: '', | ||
}, { | ||
models: [0x3100], | ||
name: 'Rack, Seat Settings' | ||
name: 'Rack', | ||
line: 'Power Rack', | ||
extra: 'Seat Settings', | ||
}, { | ||
models: [0x3103, 0x3104, 0x3105, 0x3106, 0x3110, 0x3111, 0x3120], | ||
name: 'Rack, Iron Weight' | ||
name: 'Rack', | ||
line: 'Power Rack', | ||
extra: 'Iron Weight', | ||
}, { | ||
models: [0x3231], | ||
name: 'Single Runner' | ||
name: 'Single Runner', | ||
line: 'A300', | ||
extra: '', | ||
}, { | ||
models: [0x3232, 0x323A], | ||
name: 'Dual Runner' | ||
}, { | ||
models: [0x9990], | ||
name: 'One arm bandit test stand' | ||
}, { | ||
models: [0x9999], | ||
name: 'Pressure Gauge PSI' | ||
}, { | ||
models: [0x9998], | ||
name: 'Pressure Gauge KPA' | ||
}]; | ||
name: 'Dual Runner', | ||
line: 'A300', | ||
extra: '', | ||
},]; | ||
@@ -176,0 +266,0 @@ /***************************************** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33493
947
83