font size change
This commit is contained in:
		@@ -4,7 +4,11 @@ window.onload = function() {
 | 
				
			|||||||
    connection()
 | 
					    connection()
 | 
				
			||||||
    initPlugin(plugins)
 | 
					    initPlugin(plugins)
 | 
				
			||||||
    if (localStorage.getItem('control-center-np')) $('#ccnp').removeClass('hide')
 | 
					    if (localStorage.getItem('control-center-np')) $('#ccnp').removeClass('hide')
 | 
				
			||||||
 | 
						
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const size = localStorage.getItem('size')
 | 
				
			||||||
 | 
					if (size) $('html,body').css('font-size', `${size}px`)
 | 
				
			||||||
$.strip_tags = function(str, allowed) {
 | 
					$.strip_tags = function(str, allowed) {
 | 
				
			||||||
    if (!str) {
 | 
					    if (!str) {
 | 
				
			||||||
        return ''
 | 
					        return ''
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,12 +26,6 @@ function parseColumn(target, dontclose) {
 | 
				
			|||||||
		target = 'zero'
 | 
							target = 'zero'
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	console.log('%c Parse column', 'color:red;font-size:125%')
 | 
						console.log('%c Parse column', 'color:red;font-size:125%')
 | 
				
			||||||
	var size = localStorage.getItem('size')
 | 
					 | 
				
			||||||
	if (size) {
 | 
					 | 
				
			||||||
		$('#timeline-container').css('font-size', size + 'px')
 | 
					 | 
				
			||||||
		$('.toot-reset').css('font-size', size + 'px')
 | 
					 | 
				
			||||||
		$('.cont-series').css('font-size', size + 'px')
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	if (localStorage.getItem('menu-done')) {
 | 
						if (localStorage.getItem('menu-done')) {
 | 
				
			||||||
		$('#fukidashi').addClass('hide')
 | 
							$('#fukidashi').addClass('hide')
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
//設定(setting.html)で読む
 | 
					//設定(setting.html)で読む
 | 
				
			||||||
Vue.createApp({
 | 
					const envView = Vue.createApp({
 | 
				
			||||||
    data() {
 | 
					    data() {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            config: envConstruction
 | 
					            config: envConstruction
 | 
				
			||||||
@@ -7,7 +7,7 @@ Vue.createApp({
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    methods: {
 | 
					    methods: {
 | 
				
			||||||
        complete: function (i, val) {
 | 
					        complete: function (i, val) {
 | 
				
			||||||
            var ls = envView.config[i]
 | 
					            var ls = this.config[i]
 | 
				
			||||||
            let header = ls.text.head
 | 
					            let header = ls.text.head
 | 
				
			||||||
            if (!ls.data) {
 | 
					            if (!ls.data) {
 | 
				
			||||||
                ls = [ls]
 | 
					                ls = [ls]
 | 
				
			||||||
@@ -32,16 +32,19 @@ Vue.createApp({
 | 
				
			|||||||
            if (ls[0].id == 'frame') {
 | 
					            if (ls[0].id == 'frame') {
 | 
				
			||||||
                frameSet(val)
 | 
					                frameSet(val)
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            if (ls[0].id == 'size') {
 | 
				
			||||||
 | 
						            $('html,body').css('font-size', `${val}px`)
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            M.toast({ html: `Updated: ${header}`, displayLength: 3000 })
 | 
					            M.toast({ html: `Updated: ${header}`, displayLength: 3000 })
 | 
				
			||||||
            return true
 | 
					            return true
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
}).mount('#envView')
 | 
					}).mount('#envView')
 | 
				
			||||||
Vue.createApp({
 | 
					const tlView = Vue.createApp({
 | 
				
			||||||
    data() { return { config: tlConstruction } },
 | 
					    data() { return { config: tlConstruction } },
 | 
				
			||||||
    methods: {
 | 
					    methods: {
 | 
				
			||||||
        complete: function (i, val) {
 | 
					        complete: function (i, val) {
 | 
				
			||||||
            var ls = tlView.config[i]
 | 
					            var ls = this.config[i]
 | 
				
			||||||
            let header = ls.text.head
 | 
					            let header = ls.text.head
 | 
				
			||||||
            if (val) {
 | 
					            if (val) {
 | 
				
			||||||
                localStorage.setItem(ls.storage, val)
 | 
					                localStorage.setItem(ls.storage, val)
 | 
				
			||||||
@@ -62,7 +65,7 @@ Vue.createApp({
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
}).mount('#tlView')
 | 
					}).mount('#tlView')
 | 
				
			||||||
Vue.createApp({
 | 
					const postView = Vue.createApp({
 | 
				
			||||||
    data() {
 | 
					    data() {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            config: postConstruction,
 | 
					            config: postConstruction,
 | 
				
			||||||
@@ -72,7 +75,7 @@ Vue.createApp({
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    methods: {
 | 
					    methods: {
 | 
				
			||||||
        complete: function (i, val) {
 | 
					        complete: function (i, val) {
 | 
				
			||||||
            var ls = postView.config[i]
 | 
					            var ls = this.config[i]
 | 
				
			||||||
            let header = ls.text.head
 | 
					            let header = ls.text.head
 | 
				
			||||||
            if (val) {
 | 
					            if (val) {
 | 
				
			||||||
                localStorage.setItem(ls.storage, val)
 | 
					                localStorage.setItem(ls.storage, val)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user