[WordPress] 外掛分享: Hangman

首頁外掛目錄 › Hangman
WordPress 外掛 Hangman 的封面圖片
100+
安裝啟用
★★★★
4/5 分(3 則評價)
1026 天前
最後更新
問題解決
v1.0 上架:2018-08-08

內容簡介

這是傳統猜單詞遊戲的煥然一新版本,字典包含14000個英文單詞。運行基於jQuery庫、AJAX和PHP。

演示

您可以在這裡玩猜單詞遊戲的演示

使用方法

安裝這個外掛。
在您想顯示猜單詞遊戲的頁面中添加短碼 [hangman]。
(可選)更改默認單詞需要修改文件 "dictionary.txt"。請注意,如果外掛有升級,更改將被覆蓋。

疑難排解

我發現,由於某些原因,jQuery庫可能未能添加到WordPress網站中。要包含它,請添加以下代碼到functions.php :

function theme_scripts() {
wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scripts', 'theme_scripts');

關於這個外掛的任何問題,您可以在這裡聯繫我,或使用討論區

捐款

如果您喜歡玩猜單詞遊戲並認為它有用,請考慮捐款

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hangman」→ 直接安裝(推薦)

原文外掛簡介

A cool version of the traditional hangman. Dictionary composed of 14000 English words. Powered by the jQuery library, AJAX and PHP.
Demo
You can play a demo of the Hangman game here
How to use

Install the plugin.
Add the shortcode [hangman] in the page you want to display the Hangman.
(Optional) To change the default words you need to modify the file “dictionary.txt”. Take note that, if there is a plugin upgrade, the changes will be overwritten.

Troubleshooting
I’ve found that, for some reason, jQuery library may not be added on the WordPress website. To include it, add the following code to functions.php:
function theme_scripts() {
wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scripts', 'theme_scripts');

For any issues about this plugin, you can contact me here or use the forum
Donations
If you enjoy playing Hangman and find it useful, please consider making a donation

延伸相關外掛

文章
Filter
Apply Filters
Mastodon