feat: 임시 500px/1000px 모드 추가
This commit is contained in:
+9
-1
@@ -1,12 +1,13 @@
|
||||
import axios from 'axios';
|
||||
import $ from 'jquery';
|
||||
import { InvalidResponse } from '@/defs';
|
||||
import { InvalidResponse, keyScreenMode } from '@/defs';
|
||||
import { convertFormData } from '@util/convertFormData';
|
||||
import { setAxiosXMLHttpRequest } from '@util/setAxiosXMLHttpRequest';
|
||||
import { unwrap } from '@util/unwrap';
|
||||
import { unwrap_any } from '@util/unwrap_any';
|
||||
|
||||
|
||||
|
||||
type LogResponse = {
|
||||
result: true;
|
||||
log: Record<string, string>;
|
||||
@@ -105,6 +106,13 @@ $(function ($) {
|
||||
initCustomCSSForm();
|
||||
|
||||
|
||||
const $screenModeRadios = $('input:radio[name=screenMode]');
|
||||
$screenModeRadios.prop('checked', false).filter(`[value="${localStorage.getItem(keyScreenMode)??'auto'}"]`).prop('checked', true);
|
||||
$screenModeRadios.on('click', function(e){
|
||||
localStorage.setItem(keyScreenMode, (e.target as HTMLInputElement).value);
|
||||
});
|
||||
|
||||
|
||||
$('#die_immediately').on('click', async function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user