Skip to content

Commit

Permalink
Edit max line length (ParadiseSS13#25071)
Browse files Browse the repository at this point in the history
* Edit max line length

* oh god

* ts also

* rebuild tgui

* Format again after conflicts resolving

* Me rebuild tgui

* this is minified

* this is removed

* rebuild tgui
  • Loading branch information
m-dzianishchyts authored Jun 29, 2024
1 parent 1b56455 commit c129ac3
Show file tree
Hide file tree
Showing 331 changed files with 5,054 additions and 11,116 deletions.
10 changes: 5 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@
],

"[javascript]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[scss]": {
"editor.rulers": [80],
"editor.rulers": [120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
Expand Down
24 changes: 12 additions & 12 deletions code/modules/arcade/page.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
body {
/* Disables scroll bars */
overflow:hidden;
overflow: hidden;
}
#background {
width:900px;
height:406px;
width: 900px;
height: 406px;
position: absolute;
background: url(backgroundsprite.png) no-repeat;
background-position: 0 -166px;
Expand All @@ -22,17 +22,17 @@ body {
}

#foreground {
width:900px;
height:520px;
width: 900px;
height: 520px;
position: absolute;
background: url(backgroundsprite.png) no-repeat center;
background-position: 0 -575px;
z-index:10;
z-index: 10;
}

#crane {
width:100px;
height:100px;
width: 100px;
height: 100px;
position: absolute;
top: 131px;
left: 100px;
Expand All @@ -43,21 +43,21 @@ body {
height: 83px;
position: absolute;
background: url('crane_top.png') repeat-y center;
bottom: 86px;/*top: -69px;*/
bottom: 86px; /*top: -69px;*/
left: 47px;
}

#crane-handle-bottom {
width:10px;
height:8px;
width: 10px;
height: 8px;
position: absolute;
background: url('clawpieces.png') no-repeat center;
top: 14px;
left: 47px;
background-position: -198px -83px;
}

#crane-center{
#crane-center {
width: 26px;
height: 27px;
position: absolute;
Expand Down
81 changes: 40 additions & 41 deletions html/browser/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,49 @@ var submitButton;
var optionsMap = {};

function updateTopic() {
if (!input || !submitButton) {
return;
}

var hrefList = submitButton.getAttribute('href').split(';');
// Topic must come last in the submit button for this to work
hrefList = hrefList.slice(0, hrefList.length - 1);
hrefList.push(optionsMap[input.value] ? 'submit=' + optionsMap[input.value] : '');
submitButton.setAttribute('href', hrefList.join(';'));
if (!input || !submitButton) {
return;
}

var hrefList = submitButton.getAttribute('href').split(';');
// Topic must come last in the submit button for this to work
hrefList = hrefList.slice(0, hrefList.length - 1);
hrefList.push(optionsMap[input.value] ? 'submit=' + optionsMap[input.value] : '');
submitButton.setAttribute('href', hrefList.join(';'));
}

function setElements() {
input = $('#input');
submitButton = $('#submit-button');
var choices = $('#choices');

if (!input || !submitButton || !choices) {
return;
}


for (var i = 0; i < choices.options.length; i++) {
var name = choices.options[i].value;
var cleaned = decodeURI(name);
optionsMap[cleaned] = name;
choices.options[i].value = cleaned;
}

input.addEventListener('keyup', function(event) {
if (event.key !== 'Enter') {
return;
}

if (Object.keys(optionsMap).indexOf(input.value) === -1) {
// Byond doesn't let you to use enter to select
// so we need to prevent unintended submissions
return
}

submitButton.click();
event.preventDefault();
});

input.focus();
input = $('#input');
submitButton = $('#submit-button');
var choices = $('#choices');

if (!input || !submitButton || !choices) {
return;
}

for (var i = 0; i < choices.options.length; i++) {
var name = choices.options[i].value;
var cleaned = decodeURI(name);
optionsMap[cleaned] = name;
choices.options[i].value = cleaned;
}

input.addEventListener('keyup', function (event) {
if (event.key !== 'Enter') {
return;
}

if (Object.keys(optionsMap).indexOf(input.value) === -1) {
// Byond doesn't let you to use enter to select
// so we need to prevent unintended submissions
return;
}

submitButton.click();
event.preventDefault();
});

input.focus();
}

window.onload = setElements;
Loading

0 comments on commit c129ac3

Please sign in to comment.