
內容簡介
將您的 P5JS 稿件以響應式方式嵌入文章和頁面
1. 在 /uploads/p5js/ 目錄下創建一個新的子目錄 (使用 FTP):
2. 將您的 P5JS 稿件的所有文件和目錄(index.html、scetch.js、libraries 等)上傳到新的 WordPress /uploads/p5js/[sketch_folder] 目錄中。
3. 將短代碼添加到您的文章或頁面中
屬性
sketchfolder:您的 P5JS 稿件的名稱(必填)
canvaswidth:草稿的寬度,應與 creattecanvas() 語句中的寬度相同(必填)
canvasheight:草稿的高度,應與 creattecanvas() 語句中的高度相同(必填)
bordersize:邊框大小(可選,預設值:0 像素)
bordercolor:草稿周圍邊框的顏色(可選,預設值:無邊框,僅當您定義了邊框大小時才能使用)
作者
CAGE Web Design | Rolf van Gelder,荷蘭埃因霍芬 – http://cagewebdev.com – http://rvg.cage.nl
外掛 URL
下載連結
免責聲明
無保修,自行承擔風險!
CAGE Web Design | Rolf van Gelder 的外掛
由 CAGE Web Design | Rolf van Gelder 創建的 WordPress 外掛程式
http://cagewebdev.com/category/news-tech-art/wordpress/
外掛標籤
開發者團隊
原文外掛簡介
Embed your P5JS sketches in posts and pages in a responsive way
1. Create a new sub-directory in the /uploads/p5js/ directory (using FTP):
2. Upload all files and directories (index.html, scetch.js, libraries, etc) of your P5JS sketch to the new WordPress /uploads/p5js/[sketch_folder] directory.
3. Add a short code to your post or page
Attributes
sketchfolder: the name of your P5JS sketch (REQUIRED)
canvaswidth: the width of the sketch, should be the same as in your creattecanvas() statement (REQUIRED)
canvasheight: the height of the sketch, should be the same as in your creattecanvas() statement (REQUIRED)
bordersize: size of the border in pix (OPTIONAL, default: 0px)
bordercolor: color of the border around the sketch (OPTIONAL, default: no border, only works when you also define a bordersize)
Author
CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands – http://cagewebdev.com – http://rvg.cage.nl
Plugin URL
Download URL
Responsive P5JS for WP
Disclaimer
NO WARRANTY, USE IT AT YOUR OWN RISK!
Plugins by CAGE Web Design | Rolf van Gelder
WordPress plugins created by CAGE Web Design | Rolf van Gelder
http://cagewebdev.com/category/news-tech-art/wordpress/
