Commit Graph

31 Commits

Author SHA1 Message Date
curben a5d1791b14 feat(search): replace gitlab search with duckduckgo
todo: algolia
2019-06-07 18:39:51 +09:30
curben 60d62f94f3 feat: add search function to mobile page
* add a gap after search form to prevent misclick
* use addEventListener() instead of onclick()
  - https://stackoverflow.com/a/34216918
2019-06-01 18:51:51 +09:30
curben cab3baeaf8 style: standardjs lint 2019-05-25 23:58:52 +09:30
curben cf16dd3e43 refactor: move creation of 'Copy' button from client to server
* https://github.com/cheeriojs/cheerio#append-content-content--
  * cheerio doesn't have .createElement() function
    - https://code.tutsplus.com/tutorials/jquery-14-released-the-15-new-features-you-must-know--net-8590
2019-05-25 20:14:02 +09:30
curben 3dfc57dbbe refactor: replace for loop with forEach()
https://stackoverflow.com/a/34832466/9645167
2019-05-25 17:49:36 +09:30
curben 4791c98a00 refactor: remove jquery and fancybox
todo https://github.com/dimsemenov/photoswipe
2019-05-22 11:13:21 +09:30
curben 0e686c620b refactor: Use pure JS equivalent of jQuery's $.ready()
https://stackoverflow.com/a/9899701
2019-05-22 10:52:58 +09:30
curben 03c527b2f5 refactor: move inline search function to js file
avoid inline script for CSP
2019-05-21 14:12:30 +09:30
curben 2ac754fa4d style: arrow function
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
2019-05-21 11:22:01 +09:30
curben e7a6071d08 refactor: move inline cloudinary js into js file
to make way for CSR policy
2019-05-21 10:49:30 +09:30
curben ba48027e74 refactor: switch to regular cloudinary js
* it's hosted at cdnjs, inline with other js source
    - better for HTTP/2 multiplexing if same host
  * update jquery
2019-05-19 12:07:34 +09:30
curben 55f5f11c2f style: convert var to let/const
ES6 syntax
2019-04-10 20:18:45 +09:30
curben 43bf50dac5 refactor: switch to more modern sri-fallback
https://github.com/JackuB/subresource-integrity-fallback
2019-04-10 19:59:56 +09:30
curben d314bff200 chore: update libs 2019-04-10 14:45:02 +09:30
curben 913f9572d7 refactor: re-implement nav menu without javascript
inspired by https://github.com/paulcarl/skelepico-theme
2018-11-06 17:22:44 +10:30
curben 07afb16715 Use js standard style
https://standardjs.com/
2018-10-25 19:33:38 +10:30
curben 54d74b4d1b Switch to cloudinary-jquery without file-upload function
- cloudinary-core 67.1KB
- cloudinary-jquery 66.5KB
- cloudinary-jquery-file-upload 71KB
2018-10-07 14:47:51 +10:30
curben 4eca4d9ebf Don't bundle js
HTTP/2 (supported by Netlify) offers multiplexing, so bundle/concat is not required
https://stackoverflow.com/a/36519379
Revert a4226f1413
2018-10-05 14:12:03 +09:30
curben a4226f1413 Combine sri-fallback and typing
Save one HTTP request
2018-10-04 12:21:36 +09:30
curben 9a8a48a15d Don't inject fancybox tag/class to cloudinary class
Incompatible with cloudinary
2018-10-02 12:33:19 +09:30
curben 19e3cd1bcb Add cloudinary tag plugin 2018-10-01 12:20:54 +09:30
curben 43d0b22e6b Fix clipboardjs implemention
Previous commit 4fb0adb24a didn't work
Credit to https://www.jianshu.com/p/3e9d614c1e77
2018-09-30 13:21:59 +09:30
curben 8e5c6f4f0f Update fancybox and implement sri-fallback
https://github.com/cyph/sri-fallback
2018-09-29 21:07:09 +09:30
curben 45b47a9414 Upgrade clipboardjs to 2.0.1 2018-09-29 19:24:51 +09:30
curben 4fb0adb24a Add 'Copy' button to code snippet
https://webdesign.tutsplus.com/tutorials/copy-to-clipboard-made-easy-with-clipboardjs--cms-25086
https://davidwalsh.name/clipboard
2018-09-29 18:46:59 +09:30
curben cc1b2fc204 Switch to hexo-yam
imagemin module of hexo-all-minifier has vulnerabilities
https://snyk.io/test/npm/hexo-all-minifier
Use pre-compressed images instead
2018-09-27 18:24:10 +09:30
curben 55281fcc3a Upgrade jQuery, clipboard.js and fontawesome
Upgrade jQuery to v3.3.1, clipboard.js to v2.0.1 and fontawesome to v5.3.1
2018-09-19 10:19:58 +09:30
curben bc5e29ffab Upgrade jquery and fancybox 2018-09-18 18:43:24 +09:30
curben 33bdd1d382 Self-serve scripts and remove unused codes 2018-09-16 16:54:02 +09:30
curben 0feefd5016 Minify css and css
using CSSO and UglifyJS3
2018-09-16 15:44:27 +09:30
curben 0fc76e12aa Install 'typing' theme 2018-09-14 17:57:43 +09:30