內容簡介
Detector 是一個簡單的基於 PHP 和 JavaScript 的瀏覽器和特徵檢測庫。它可以自動適應新的設備和瀏覽器,而無需從中央數據庫中獲取瀏覽器信息。
也可在 GitHub 上找到: https://github.com/SteveBarnett/Detector。
完整的文檔位於 github / dmolsen / Detector。
待辦事項
添加一些有用的響應式圖像處理,例如 picturefill.js。一開始基於族系?
添加根據屏幕尺寸條件性加載內容的 JS 函數。
wp_enqueue_script 的 Modernizr
檢查 Modernizr 版本,自定義
添加從管理區域添加自己的 特徵測試 選項?
添加從管理區域添加自己的 族系 選項?
添加短碼?
外掛標籤
開發者團隊
原文外掛簡介
Detector is a simple, PHP- and JavaScript-based browser- and feature-detection library that can adapt to new devices & browsers on its own without the need to pull from a central database of browser information.
Also available on GitHub: https://github.com/SteveBarnett/Detector.
Full documentation is available at github / dmolsen / Detector.
To Do
Add some useful responsive image handling, in the style of picturefill.js. Based on families at first?
Add functions for conditional loading of content via JS, depending on screen size.
wp_enqueue_script for Modernizr
Check Modernizr version, custom
Add option to add own feature tests from admin area?
Add option to add own families from admin area?
Add shortcodes?
