差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| start [2020/03/20 14:59] – ともやん | 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="/ |
| - | // | + | <script src=" |
| - | </ | + | |
| - | | + | |
| - | <!-- | + | |
| - | <style> | + | |
| - | .char-svg { | + | |
| - | position: fixed; | + | |
| - | width: 509px; | + | |
| - | height: 415px; | + | |
| - | background-image: | + | |
| - | background-repeat: no-repeat; | + | |
| - | top: auto; | + | |
| - | left: 0; | + | |
| - | right: 0; | + | |
| - | bottom: 0; | + | |
| - | margin: 0 auto; | + | |
| - | z-index: | + | |
| - | opacity: | + | |
| - | } | + | |
| - | </style> | + | |
| - | < | + | |
| - | const $ = jQuery; | + | |
| - | $(() => { | + | |
| - | $('# | + | |
| - | }); | + | |
| - | | + | |
| - | --> | + | |
| <!-- Tomoyan.net Vue.js app start --> | <!-- Tomoyan.net Vue.js app start --> | ||
| + | < | ||
| < | < | ||
| # | # | ||
| - | overflow-x: | + | overflow-x: |
| + | } | ||
| + | # | ||
| + | font-size: 12px; | ||
| + | line-height: | ||
| } | } | ||
| # | # | ||
| 行 38: | 行 17: | ||
| } | } | ||
| .font_half { | .font_half { | ||
| - | font-size: | + | font-size: |
| } | } | ||
| </ | </ | ||
| - | <div id=" | ||
| </ | </ | ||
| ====== ようこそ、ともやん・どっと・ねっとへ!! ====== | ====== ようこそ、ともやん・どっと・ねっとへ!! ====== | ||
| - | {{:mg_chara.png? | + | {{mg_chara.png? |
| - | ====== 確認くん ====== | + | ====== |
| - | お出掛け前のチェックにどうぞ。\\ | + | [[dog: |
| + | |||
| + | ====== ✔️確認くん ====== | ||
| + | お出掛け前のチェックにどうぞ💁♂️\\ | ||
| + | < | ||
| <WRAP prewrap 100% # | <WRAP prewrap 100% # | ||
| - | ^ IP アドレス (IPv4)\\ < | + | < |
| + | <div id=" | ||
| + | </ | ||
| + | ^ IP アドレス (< | ||
| ^ ゲートウェイ名\\ < | ^ ゲートウェイ名\\ < | ||
| - | ^ CPU Cores\\ < | + | ^ CPU Cores\\ < |
| - | ^ [[https:// | + | ^ [[https:// |
| - | ^ [[https:// | + | ^ ダークモード\\ < |
| + | ^ Vendor\\ < | ||
| + | ^ [[https:// | ||
| + | ^ [[https:// | ||
| + | < | ||
| + | </ | ||
| + | <!-- Tomoyan.net Vue.js app end --> | ||
| + | </ | ||
| + | < | ||
| + | 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 @dokuwikiusers> | + | <ifauth @internal_users> |
| - | ====== Dokuwiki Top (内部) ====== | + | ====== |
| ^DokuWikiの使い方^^ | ^DokuWikiの使い方^^ | ||
| - | |[[playground: | + | |[[playground: |
| ^ 生活 ^^^ | ^ 生活 ^^^ | ||
| - | |[[confidential_area: | + | |[[internal_users_area:pharmacy|💊お薬関連]] |
| - | |[[confidential_area: | + | |[[internal_users_area: |
| </ | </ | ||
| <ifauth @confidential> | <ifauth @confidential> | ||
| - | [[doku_maintenance|DokuWikiメンテ部屋]]\\ | + | [[doku_maintenance|🛠DokuWikiメンテ部屋]]\\ |
| ^ その他 ^^^ | ^ その他 ^^^ | ||
| - | |[[confidential_area|機密領域]] | + | |[[confidential_area|🔑機密領域]] |
| - | |[[kodomo_area|子供向けサーバー構築]] | + | |[[kodomo_area|👶子供向けサーバー構築]] |
| </ | </ | ||
| - | <ifauth @confidential_sub> | + | ====== |
| - | ^ その他 ^^^ | + | |
| - | |[[confidential_area|機密領域]] | + | |
| - | </ | + | |
| - | + | ||
| - | ====== Dokuwiki Top ====== | + | |
| <php> | <php> | ||
| - | function curlGet($url) { | + | function curlGet($url, $referer='' |
| $curl = curl_init(); | $curl = curl_init(); | ||
| | | ||
| 行 88: | 行 163: | ||
| curl_setopt($curl, | curl_setopt($curl, | ||
| curl_setopt($curl, | curl_setopt($curl, | ||
| + | curl_setopt($curl, | ||
| | | ||
| $response = curl_exec($curl); | $response = curl_exec($curl); | ||
| 行 96: | 行 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 '< |
| + | echo 'var quotes = ' . $json . ';'; | ||
| + | echo '</ | ||
| + | $usdjpy = []; //json_decode($json, | ||
| + | $cnhjpy = []; // | ||
| + | // | ||
| + | // | ||
| + | // | ||
| // | // | ||
| 行 112: | 行 203: | ||
| // finance.yahoo.co.jp | // finance.yahoo.co.jp | ||
| - | echo '< | + | echo '< |
| - | echo '< | + | |
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| echo '< | echo '< | ||
| echo '< | echo '< | ||
| echo '< | echo '< | ||
| echo '< | echo '< | ||
| - | echo '< | + | echo '< |
| + | echo '</ | ||
| + | |||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '</ | ||
| + | |||
| + | echo '</ | ||
| </ | </ | ||
| + | < | ||
| ^ 関連サイト | ^ 関連サイト | ||
| - | | [[https:// | + | | [[https:// |
| ^ DokuWikiの使い方 | ^ DokuWikiの使い方 | ||
| - | | [[wiki: | + | | [[wiki: |
| - | | [[http:// | + | | [[http:// |
| - | ^ 技術資料 | + | ^ カテゴリー別 |
| - | | [[linux|Linux 関連]] | + | ^ OS |
| - | | [[mac|Mac 関連]] | + | | [[linux|🐣Linux 関連]] |
| - | | [[windows|Windows 関連]] | + | | [[mac|🍔🍟Mac 関連]] |
| - | | [[python|Python 関連]] | [[python: | + | | [[windows|🍱Windows 関連]] |
| - | | [[html_css|HTML5 + CSS3 関連]] | [[javascript|JavaScript 関連]] | [[golang|Go | + | ^ 言語 |
| - | | [[database|データベース関連]] | + | | [[python|🐍Python]] | [[python: |
| + | | [[html_css|🚾HTML + CSS]] | [[javascript|🈁JavaScript]] | [[typescript|🈁TypeScript]] | ||
| + | | [[c_cpp|🍋C/C++]] | [[rust|🦀Rust]] | ||
| + | | [[golang|🐭Go]] | | [[java|☕Java]] | ||
| + | ^ テクノロジ | ||
| + | | [[web|Web 関連]] | ||
| + | | [[algorithm|アルゴリズム]] | ||
| | [[ai|人工知能関連]] | | [[ai|人工知能関連]] | ||
| + | ^ その他 | ||
| + | | [[mathematics|数学関連]] | ||
| + | | [[electronics|電子工学関連]] | ||
| ^ 生活 | ^ 生活 | ||
| - | | [[cooking|ハッカ~♪のお料理]] | + | | [[cooking|🍳ハッカ~♪ のお料理]] |
| - | | [[https:// | + | | [[lifehacker|🏡ハッカ~♪ |
| ^ 金融 | ^ 金融 | ||
| | [[currency|通貨関連]] | | [[currency|通貨関連]] | ||
| - | < | + | \\ |
| - | </ | + | このサイトを広告なしで見るには...\\ |
| - | <!-- Tomoyan.net Vue.js app end --> | + | [[web:vivaldi|Vivaldi - 超絶便利。タブ管理や広告で悩まないブラウザ]]\\ |
| - | < | + | [[web:brave|Brave - プライバシーを重視した高速かつ安全な次世代ブラウザ]]\\ |
| - | let tomoyan_net_app; | + | の利用をお勧めします😉\\ |
| - | require([' | + | |
| - | tomoyan_net_app = new Vue({ | + | |
| - | el: '# | + | |
| - | data: { | + | |
| - | user_agent: navigator.userAgent, | + | |
| - | display_resolution: | + | |
| - | }, | + | |
| - | created: function() { | + | |
| - | this.set_display_resolution(); | + | |
| - | }, | + | |
| - | computed: { | + | |
| - | cpu_cores: function() { | + | |
| - | let cpu_cores = (!!navigator.hardwareConcurrency ? | + | |
| - | | + | |
| - | '' | + | |
| - | let cpu_cores_tr = this.$el.querySelector('# | + | |
| - | + | ||
| - | if (cpu_cores == '' | + | |
| - | // | + | |
| - | // | + | |
| - | cpu_cores = ' | + | |
| - | } | + | |
| - | else { | + | |
| - | cpu_cores += ' core'; | + | |
| - | } | + | |
| - | + | ||
| - | return cpu_cores ; | + | |
| - | }, | + | |
| - | }, | + | |
| - | methods: { | + | |
| - | set_display_resolution: | + | |
| - | const display_resolution = | + | |
| - | screen.width + ' x ' + screen.height + ' pixel ' + | + | |
| - | ' | + | |
| - | + | ||
| - | this.display_resolution = display_resolution; | + | |
| - | }, | + | |
| - | }, | + | |
| - | mounted: function() { | + | |
| - | | + | |
| - | }, | + | |
| - | beforeDestroy: function() { | + | |
| - | window.removeEventListener(' | + | |
| - | }, | + | |
| - | }); | + | |
| - | }); | + | |
| - | </ | + | |
| - | </ | + | |