mirror of
https://gitlab.com/octospacc/Web-Archives-Misc
synced 2025-01-15 09:15:49 +01:00
2 lines
8.7 KiB
JavaScript
2 lines
8.7 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{18:function(t,n,i){"use strict";i.r(n),n.default={data:function(){var t=this,n=this.$route.context;console.log(n);var i=n.controls,e={a:{},b:{},x:{},y:{},up:{},down:{},left:{},right:{},start:{},select:{},l:{},r:{}};return Object.keys(i).forEach((function(n){e[n].key=i[n],e[n].display=t.$app.methods.controls.getKeyName(i[n])})),{name:n.name,controls:e}},methods:{setKey:function(t){var n=this;t.target.value=this.$app.methods.controls.getKeyName(t.keyCode),this.controls[t.target.getAttribute("name")]={key:t.keyCode,display:this.$app.methods.controls.getKeyName(t.keyCode)};var i=JSON.parse(localStorage.getItem("controls")),e={a:0,b:0,x:0,y:0,up:0,down:0,left:0,right:0,start:0,select:0,l:0,r:0};Object.keys(this.controls).map((function(t){e[t]=n.controls[t].key})),i.forEach((function(t,l){t.name==n.name&&(i[l]={name:n.name,controls:e})})),localStorage.setItem("controls",JSON.stringify(i))}},id:"cf6eb2cbd5",render:function(){return'\n\t<div class="page">\n\t\t<div class="navbar">\n\t\t\t<div class="navbar-inner sliding">\n\t\t\t\t<div class="left">\n\t\t\t\t\t<a href="#" class="link back"><i class="icon icon-back"></i> <span class="ios-only">Back</span></a>\n\t\t\t\t</div>\n\t\t\t\t<div class="title">\n\t\t\t\t\t'.concat(this.name,'\n\t\t\t\t</div>\n\t\t\t\t<div class="title-large">\n\t\t\t\t\t<div class="title-large-text">\n\t\t\t\t\t\t').concat(this.name,'\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="page-content">\n\t\t\t<form id="controls_form" name="controls_form">\n\t\t\t\t<div class="block-title block-title-medium">\n\t\t\t\t\tD-Pad\n\t\t\t\t</div>\n\t\t\t\t<div class="list no-hairlines-md">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tUp\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="up" id="up_input" value="').concat(this.controls.up.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tDown\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="down" id="down_input" value="').concat(this.controls.down.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tLeft\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="left" id="left_input" value="').concat(this.controls.left.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tRight\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="right" id="right_input" value="').concat(this.controls.right.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<div class="block-title block-title-medium">\n\t\t\t\t\tStart/Select\n\t\t\t\t</div>\n\t\t\t\t<div class="list no-hairlines-md">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tStart\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="start" id="start_input" value="').concat(this.controls.start.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tSelect\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="select" id="select_input" value="').concat(this.controls.select.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<div class="block-title block-title-medium">\n\t\t\t\t\tFace Buttons\n\t\t\t\t</div>\n\t\t\t\t<div class="list no-hairlines-md">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tA\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="a" id="a_input" value="').concat(this.controls.a.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tB\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="b" id="b_input" value="').concat(this.controls.b.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tX\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="x" id="x_input" value="').concat(this.controls.x.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tY\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="y" id="y_input" value="').concat(this.controls.y.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<div class="block-title block-title-medium">\n\t\t\t\t\tShoulder Buttons\n\t\t\t\t</div>\n\t\t\t\t<div class="list no-hairlines-md">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tL\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="l" id="l_input" value="').concat(this.controls.l.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class="item-content item-input">\n\t\t\t\t\t\t\t\t<div class="item-inner">\n\t\t\t\t\t\t\t\t\t<div class="item-title item-label">\n\t\t\t\t\t\t\t\t\t\tR\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="item-input-wrap">\n\t\t\t\t\t\t\t\t\t\t<input maxlength="0" type="text" name="r" id="r_input" value="').concat(this.controls.r.display,'" placeholder="Enter a keyboard key" @keyup="setKey" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t</div>\n')},styleScoped:!1}}}]);
|
|
//# sourceMappingURL=13.app.js.map
|