差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| start [2022/09/24 05:17] – ともやん | start [2025/08/10 19:06] (現在) – [Dokuwiki Top (内部)] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| < | < | ||
| - | <script src="/_media/javascript/requirejs/require-2.3.6.min.js? | + | <script src="https://cdn.jsdelivr.net/npm/vue/ |
| - | <script> | + | |
| - | | + | <script src="https://cdn.jsdelivr.net/npm/ua-parser-js@1.0.39/ |
| - | var startTime = Date.now(); | + | |
| - | | + | |
| - | <script src="/_media/javascript/requirejs/settings.js? | + | |
| <!-- Tomoyan.net Vue.js app start --> | <!-- Tomoyan.net Vue.js app start --> | ||
| + | < | ||
| < | < | ||
| # | # | ||
| 行 26: | 行 24: | ||
| {{mg_chara.png? | {{mg_chara.png? | ||
| - | ====== 確認くん ====== | + | ====== |
| + | [[dog: | ||
| + | |||
| + | ====== ✔️確認くん ====== | ||
| お出掛け前のチェックにどうぞ💁♂️\\ | お出掛け前のチェックにどうぞ💁♂️\\ | ||
| < | < | ||
| <WRAP prewrap 100% # | <WRAP prewrap 100% # | ||
| < | < | ||
| - | <div id="tomoyan_net_app"> | + | <div id="tomoyan_net-app"> |
| </ | </ | ||
| - | ^ IP アドレス (< | + | ^ IP アドレス (< |
| ^ ゲートウェイ名\\ < | ^ ゲートウェイ名\\ < | ||
| ^ CPU Cores\\ < | ^ CPU Cores\\ < | ||
| - | ^ [[https:// | + | ^ [[https:// |
| ^ ダークモード\\ < | ^ ダークモード\\ < | ||
| - | ^ [[https:// | + | ^ Vendor\\ < |
| + | ^ [[https:// | ||
| ^ [[https:// | ^ [[https:// | ||
| - | < | ||
| < | < | ||
| </ | </ | ||
| <!-- Tomoyan.net Vue.js app end --> | <!-- Tomoyan.net Vue.js app end --> | ||
| + | </ | ||
| + | <php> | ||
| + | echo '< | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | "use strict"; | ||
| + | const { createApp } = Vue | ||
| + | | ||
| + | let ua_parser; | ||
| + | const tomoyan_net_app = createApp({ | ||
| + | data() { | ||
| + | return { | ||
| + | cpu_cores: '', | ||
| + | display_resolution: | ||
| + | browser_resolution: | ||
| + | user_agent: navigator.userAgent, | ||
| + | vendor: navigator.vendor, | ||
| + | ua_parser: '', | ||
| + | versions: '', | ||
| + | vue_ver: Vue.version, | ||
| + | } | ||
| + | }, | ||
| + | async created() { | ||
| + | this.remote_addr = REMOTE_ADDR.indexOf(':' | ||
| + | window.addEventListener(' | ||
| + | this.get_display_resolution(); | ||
| + | this.get_cpu_cores() | ||
| + | |||
| + | window.UAParser = UAParser; | ||
| + | let ua_result = ua_parser = new UAParser(); | ||
| + | let ua_json = ua_result.getResult(); | ||
| + | this.ua_parser = JSON.stringify(ua_json, | ||
| + | |||
| + | this.versions = ' | ||
| + | ' | ||
| + | }, | ||
| + | computed: { | ||
| + | ip_ver() { | ||
| + | return REMOTE_ADDR.indexOf(':' | ||
| + | }, | ||
| + | dark_mode() { | ||
| + | if (matchMedia(' | ||
| + | return ' | ||
| + | } | ||
| + | else { | ||
| + | return matchMedia(' | ||
| + | } | ||
| + | }, | ||
| + | }, | ||
| + | methods: { | ||
| + | get_display_resolution() { | ||
| + | this.display_resolution = screen.width + ' x ' + screen.height; | ||
| + | this.browser_resolution = window.innerWidth + ' x ' + window.innerHeight; | ||
| + | }, | ||
| + | get_cpu_cores() { | ||
| + | this.cpu_cores = (!!navigator.hardwareConcurrency ? | ||
| + | navigator.hardwareConcurrency : | ||
| + | '' | ||
| + | }, | ||
| + | async get_ip4addr() { | ||
| + | // https:// | ||
| + | let ip4addr; | ||
| + | try { | ||
| + | ip4addr = (await (await fetch(' | ||
| + | } | ||
| + | catch (error) { | ||
| + | console.error(error); | ||
| + | ip4addr = error; | ||
| + | } | ||
| + | return ip4addr; | ||
| + | }, | ||
| + | }, | ||
| + | mounted() { | ||
| + | window.onload = () => { | ||
| + | let diffLoadTime = Date.now() - startTime; | ||
| + | console.log(' | ||
| + | } | ||
| + | / | ||
| + | let diffReadyTime = Date.now() - startTime; | ||
| + | console.log(' | ||
| + | }*/ | ||
| + | }, | ||
| + | beforeDestroy() { | ||
| + | window.removeEventListener(' | ||
| + | }, | ||
| + | }).mount('# | ||
| + | </ | ||
| </ | </ | ||
| </ | </ | ||
| <ifauth @internal_users> | <ifauth @internal_users> | ||
| - | ====== Dokuwiki Top (内部) ====== | + | ====== |
| ^DokuWikiの使い方^^ | ^DokuWikiの使い方^^ | ||
| |[[playground: | |[[playground: | ||
| 行 65: | 行 154: | ||
| </ | </ | ||
| - | ====== Dokuwiki Top ====== | + | ====== |
| <php> | <php> | ||
| - | function curlGet($url) { | + | function curlGet($url, $referer='' |
| $curl = curl_init(); | $curl = curl_init(); | ||
| | | ||
| 行 74: | 行 163: | ||
| curl_setopt($curl, | curl_setopt($curl, | ||
| curl_setopt($curl, | curl_setopt($curl, | ||
| + | curl_setopt($curl, | ||
| | | ||
| $response = curl_exec($curl); | $response = curl_exec($curl); | ||
| 行 82: | 行 172: | ||
| //$json = curlGet(' | //$json = curlGet(' | ||
| - | $json = curlGet(' | + | //$json = curlGet(' |
| - | $json = mb_convert_encoding($json, ' | + | //$json = curlGet(' |
| + | $html = curlGet(' | ||
| + | //$html = curlGet(' | ||
| + | $html = mb_convert_encoding($html, ' | ||
| + | preg_match_all('/ | ||
| + | $html = $matchs[' | ||
| + | $json = json_encode($matchs[' | ||
| + | //$json = json_decode($matchs[' | ||
| //$usdjpy = json_decode($json, | //$usdjpy = json_decode($json, | ||
| - | $usdjpy = json_decode($json, | + | echo '< |
| - | $cnhjpy = json_decode($json, | + | echo 'var quotes = ' . $json . ';'; |
| + | echo '</ | ||
| + | $usdjpy = []; //json_decode($json, | ||
| + | $cnhjpy = []; //json_decode($json, | ||
| + | // | ||
| + | // | ||
| + | // | ||
| // | // | ||
| 行 138: | 行 242: | ||
| | [[windows|🍱Windows 関連]] | | [[windows|🍱Windows 関連]] | ||
| ^ 言語 | ^ 言語 | ||
| - | | [[python|🐍Python | + | | [[python|🐍Python]] |
| - | | [[html_css|🚾HTML + CSS 関連]] | [[javascript|🈁JavaScript | + | | [[html_css|🚾HTML + CSS]] | [[javascript|🈁JavaScript]] |
| - | | [[golang|🐭Go | + | | [[c_cpp|🍋C/ |
| + | | [[golang|🐭Go]] | ||
| ^ テクノロジ | ^ テクノロジ | ||
| | [[web|Web 関連]] | | [[web|Web 関連]] | ||
| 行 151: | 行 256: | ||
| ^ 生活 | ^ 生活 | ||
| | [[cooking|🍳ハッカ~♪ のお料理]] | | [[cooking|🍳ハッカ~♪ のお料理]] | ||
| - | | [[lifehacker|🏡ハッカ~♪ の生活術]] | + | | [[lifehacker|🏡ハッカ~♪ の生活術]] |
| ^ 金融 | ^ 金融 | ||
| | [[currency|通貨関連]] | | [[currency|通貨関連]] | ||
| - | < | ||
| - | < | ||
| - | "use strict"; | ||
| - | let tomoyan_net_app; | ||
| - | let ua_parser; | ||
| - | require([' | ||
| - | tomoyan_net_app = new Vue({ | ||
| - | el: '# | ||
| - | data: { | ||
| - | remote_addr: | ||
| - | cpu_cores: '', | ||
| - | display_resolution: | ||
| - | browser_resolution: | ||
| - | user_agent: navigator.userAgent, | ||
| - | ua_parser: '', | ||
| - | versions: '', | ||
| - | }, | ||
| - | created: function() { | ||
| - | this.get_display_resolution(); | ||
| - | this.get_cpu_cores() | ||
| - | | ||
| - | window.UAParser = UAParser; | ||
| - | let ua_result = ua_parser = new UAParser(); | ||
| - | let ua_json = ua_result.getResult(); | ||
| - | this.ua_parser = JSON.stringify(ua_json, | ||
| - | | ||
| - | this.versions = ' | ||
| - | ' | ||
| - | }, | ||
| - | computed: { | ||
| - | ip_ver: function() { | ||
| - | return this.remote_addr.indexOf(':' | ||
| - | }, | ||
| - | dark_mode: function() { | ||
| - | if (matchMedia(' | ||
| - | return ' | ||
| - | } | ||
| - | else { | ||
| - | return matchMedia(' | ||
| - | } | ||
| - | }, | ||
| - | }, | ||
| - | methods: { | ||
| - | get_display_resolution: | ||
| - | this.display_resolution = screen.width + ' x ' + screen.height; | ||
| - | this.browser_resolution = window.innerWidth + ' x ' + window.innerHeight; | ||
| - | }, | ||
| - | get_cpu_cores: | ||
| - | this.cpu_cores = (!!navigator.hardwareConcurrency ? | ||
| - | | ||
| - | '' | ||
| - | }, | ||
| - | window: | ||
| - | let diffLoadTime = Date.now() - startTime; | ||
| - | console.log(' | ||
| - | }, | ||
| - | / | ||
| - | let diffReadyTime = Date.now() - startTime; | ||
| - | console.log(' | ||
| - | },*/ | ||
| - | }, | ||
| - | mounted: function() { | ||
| - | window.addEventListener(' | ||
| - | }, | ||
| - | beforeDestroy: | ||
| - | window.removeEventListener(' | ||
| - | }, | ||
| - | }); | ||
| - | }); | ||
| - | </ | ||
| - | </ | ||
| \\ | \\ | ||
| このサイトを広告なしで見るには...\\ | このサイトを広告なしで見るには...\\ | ||
| 行 232: | 行 266: | ||
| [[web: | [[web: | ||
| の利用をお勧めします😉\\ | の利用をお勧めします😉\\ | ||
| - | \\ | + | |
| - | <wrap em> | + | |
| - | ページによっては大量の出力結果を含むため、__レンダリング処理でプチフリーズ__します😱😇\\ | + | |
| - | 快適に閲覧するには [[https:// | + | |