Verdant Froglight in Minecraft
[ad_1]
The Verdant Froglight emits a light level of 15, making it an excellent source of light for dark areas. It can also be used to prevent mobs from spawning in certain areas, depending on the light level. However, this block material has low blast resistance, making it vulnerable to weak explosions such as Ghast Fireballs. Additionally, it is opaque, meaning it does not allow light to pass through, and it is not flammable. It can be pushed and pulled by Pistons, Sticky Pistons, and Sticky Blocks.
div> /g; var matches = html.match(regex); if(matches) { var toReplace = []; for(var i=0; i < matches.length; i++) { toReplace.push(matches[i].replace(/(
]+?>|
|<\/p>)/img, ""));
}
for(var i=0; i < toReplace.length; i++) {
html = html.replace(matches[i], toReplace[i]);
}
}
return html;
}
function getSanitizedHeadingHTML(infoInput, slug) {
if(!infoInput) {
return "";
}
//ignore content if it has only whitespaces (\n,
etc)
if(infoInput.textContent.trim() === '' && !infoInput.innerHTML.match(/
]+?>|
|<\/p>)/img, "")); } for(var i=0; i < toReplace.length; i++) { html = html.replace(matches[i], toReplace[i]); } } return html; } function setIdToHeadingsTag(html,slug){ var counter = 0; var h2Matches = html.match(/
(.*?)<\/h3>/g);
if(h3Matches != null){
var resultH3 = html.match(/(.*?)<\/h3>/g).map(function(val) {
return val.replace(' 1) {
var parser = new DOMParser();
html = parser.parseFromString(content, 'text/html');
html = html.querySelector('body').getElementsByTagName('p');
}
var para = new Array();
for (var index = 0; index < html.length; index++) {
if (html[index].innerText != undefined && html[index].innerText != "" && html[index].innerText.length > 1 && html[index].innerHTML.indexOf(" 0) appendPart(0, selectionStart);
var fakeRange = appendPart(selectionStart, selectionEnd);
if(textLen > selectionEnd) appendPart(selectionEnd, textLen);
// Styles to inherit the font styles of the element
fakeClone.style.cssText = cssDefaultStyles;
// Styles to position the text node at the desired position
fakeClone.style.position = "absolute";
fakeClone.style.top = topPos + "px";
fakeClone.style.left = 38 + "px";
fakeClone.style.width = width + "px";
fakeClone.style.height = height + "px";
$('#editor').appendChild(fakeClone);
var returnValue = fakeRange.getBoundingClientRect(); //Get rect
var arrOfValues = [];
if (returnValue.height > 21) { // height of fakeRange > max height of fakeRange in single line
// split into multiple spans and return all spans
var words = fakeRange.innerText.split(" ");
var newFakeRange = document.createElement('span');
newFakeRange.style.cssText = cssDefaultStyles;
newFakeRange.textContent = words[0];
fakeClone.replaceChild(newFakeRange, fakeRange);
arrOfValues.push(newFakeRange.getBoundingClientRect());
for(var i = 1; i < words.length; i++) {
var fakeRangeSubPart1 = document.createElement('span');
fakeRangeSubPart1.style.cssText = cssDefaultStyles;
fakeRangeSubPart1.textContent = " ";
newFakeRange.parentNode.insertBefore(fakeRangeSubPart1, newFakeRange.nextSibling);
arrOfValues.push(fakeRangeSubPart1.getBoundingClientRect());
var fakeRangeSubPart2 = document.createElement('span');
fakeRangeSubPart2.style.cssText = cssDefaultStyles;
fakeRangeSubPart2.textContent = words[i];
fakeRangeSubPart1.parentNode.insertBefore(fakeRangeSubPart2, fakeRangeSubPart1.nextSibling);
arrOfValues.push(fakeRangeSubPart2.getBoundingClientRect());
newFakeRange = fakeRangeSubPart2;
}
fakeClone.parentNode.removeChild(fakeClone);
return arrOfValues;
}
fakeClone.parentNode.removeChild(fakeClone);
return returnValue;
// Local functions for readability of the previous code
function appendPart(start, end){
var span = document.createElement("span");
span.style.cssText = cssDefaultStyles; //Force styles to prevent unexpected results
span.textContent = text.substring(start, end);
fakeClone.appendChild(span);
return span;
}
// Computing offset position
function getInputOffset(){
var body = document.body,
win = document.defaultView,
docElem = document.documentElement,
box = document.createElement(tagName);
box = input.getBoundingClientRect();
var editorOffset = $('#editor').getBoundingClientRect().top;
var clientTop = docElem.clientTop || body.clientTop || 0,
clientLeft = docElem.clientLeft || body.clientLeft || 0,
scrollTop = win.pageYOffset || docElem.scrollTop || body.scrollTop,
scrollLeft = win.pageXOffset || docElem.scrollLeft || body.scrollLeft;
return {
top : box.top + scrollTop - clientTop - editorOffset,
left: box.left + scrollLeft - clientLeft
};
}
function getInputCSS(prop, isnumber){
var val = document.defaultView.getComputedStyle(input, null).getPropertyValue(prop);
return isnumber ? parseFloat(val) : val;
}
}
function showMessageToUserInToolbar(message, type) {
var color="#a8bece";
if(type === "success") {
color = "green";
}
if(type === "warning") {
color = "#bfbf2f";
}
if(type === "error") {
color = "red";
}
$("#message-to-user-toolbar").style.color = color;
$("#message-to-user-toolbar").innerText = message;
}
function removeMessageFromToolbar() {
$("#message-to-user-toolbar").innerText = "";
}
function isValidURL(str) {
var pattern = new RegExp('^(https?:\\/\\/)?'+ // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // domain name
'((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and path
'(\\?[;&a-z\\d%_.~+=-]*)?'+ // query string
'(\\#[-a-z\\d_]*)?$','i'); // fragment locator
return !!pattern.test(str);
}
1) { var parser = new DOMParser(); html = parser.parseFromString(content, 'text/html'); html = html.querySelector('body').getElementsByTagName('p'); } var para = new Array(); for (var index = 0; index < html.length; index++) { if (html[index].innerText != undefined && html[index].innerText != "" && html[index].innerText.length > 1 && html[index].innerHTML.indexOf(" 0) appendPart(0, selectionStart); var fakeRange = appendPart(selectionStart, selectionEnd); if(textLen > selectionEnd) appendPart(selectionEnd, textLen); // Styles to inherit the font styles of the element fakeClone.style.cssText = cssDefaultStyles; // Styles to position the text node at the desired position fakeClone.style.position = "absolute"; fakeClone.style.top = topPos + "px"; fakeClone.style.left = 38 + "px"; fakeClone.style.width = width + "px"; fakeClone.style.height = height + "px"; $('#editor').appendChild(fakeClone); var returnValue = fakeRange.getBoundingClientRect(); //Get rect var arrOfValues = []; if (returnValue.height > 21) { // height of fakeRange > max height of fakeRange in single line // split into multiple spans and return all spans var words = fakeRange.innerText.split(" "); var newFakeRange = document.createElement('span'); newFakeRange.style.cssText = cssDefaultStyles; newFakeRange.textContent = words[0]; fakeClone.replaceChild(newFakeRange, fakeRange); arrOfValues.push(newFakeRange.getBoundingClientRect()); for(var i = 1; i < words.length; i++) { var fakeRangeSubPart1 = document.createElement('span'); fakeRangeSubPart1.style.cssText = cssDefaultStyles; fakeRangeSubPart1.textContent = " "; newFakeRange.parentNode.insertBefore(fakeRangeSubPart1, newFakeRange.nextSibling); arrOfValues.push(fakeRangeSubPart1.getBoundingClientRect()); var fakeRangeSubPart2 = document.createElement('span'); fakeRangeSubPart2.style.cssText = cssDefaultStyles; fakeRangeSubPart2.textContent = words[i]; fakeRangeSubPart1.parentNode.insertBefore(fakeRangeSubPart2, fakeRangeSubPart1.nextSibling); arrOfValues.push(fakeRangeSubPart2.getBoundingClientRect()); newFakeRange = fakeRangeSubPart2; } fakeClone.parentNode.removeChild(fakeClone); return arrOfValues; } fakeClone.parentNode.removeChild(fakeClone); return returnValue; // Local functions for readability of the previous code function appendPart(start, end){ var span = document.createElement("span"); span.style.cssText = cssDefaultStyles; //Force styles to prevent unexpected results span.textContent = text.substring(start, end); fakeClone.appendChild(span); return span; } // Computing offset position function getInputOffset(){ var body = document.body, win = document.defaultView, docElem = document.documentElement, box = document.createElement(tagName); box = input.getBoundingClientRect(); var editorOffset = $('#editor').getBoundingClientRect().top; var clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0, scrollTop = win.pageYOffset || docElem.scrollTop || body.scrollTop, scrollLeft = win.pageXOffset || docElem.scrollLeft || body.scrollLeft; return { top : box.top + scrollTop - clientTop - editorOffset, left: box.left + scrollLeft - clientLeft }; } function getInputCSS(prop, isnumber){ var val = document.defaultView.getComputedStyle(input, null).getPropertyValue(prop); return isnumber ? parseFloat(val) : val; } } function showMessageToUserInToolbar(message, type) { var color="#a8bece"; if(type === "success") { color = "green"; } if(type === "warning") { color = "#bfbf2f"; } if(type === "error") { color = "red"; } $("#message-to-user-toolbar").style.color = color; $("#message-to-user-toolbar").innerText = message; } function removeMessageFromToolbar() { $("#message-to-user-toolbar").innerText = ""; } function isValidURL(str) { var pattern = new RegExp('^(https?:\\/\\/)?'+ // protocol '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|'+ // domain name '((\\d{1,3}\\.){3}\\d{1,3}))'+ // OR ip (v4) address '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ // port and path '(\\?[;&a-z\\d%_.~+=-]*)?'+ // query string '(\\#[-a-z\\d_]*)?$','i'); // fragment locator return !!pattern.test(str); }
<\/p>$/, "") } function toggleElementVisibility(selector) { var editorV2Popup = $(selector); if (!editorV2Popup) return; if (hasClass(editorV2Popup, "hidden")) { removeClass(editorV2Popup, "hidden"); } else { addClass(editorV2Popup, "hidden"); } } function switchEditorV2Modal() { toggleElementVisibility("#editor-v2-popup"); } function cancelV2Editor() { showV2Editor(); toggleElementVisibility("#editor-v2-popup"); } function localSaveV2EditorContents(e) { var button = e.target; showV2Editor(); toggleElementVisibility("#editor-v2-popup"); button.setAttribute("disabled", "disabled"); /* Upload base64 images to S3 */ mainEditor.uploadImages().then(function() { var tocCheckbox = document.getElementById("toc-preview"); if (tocCheckbox) { tocConfig.includeToc = tocCheckbox.checked; } setNewEditorMetaInfo(); button.removeAttribute("disabled", "disabled"); }).catch(function(error) { window.alert("Error while uploading images, please try again"); button.removeAttribute("disabled", "disabled"); }); } function setNewEditorMetaInfo() { v2EditorState.lastEdited = new Date().toISOString(); v2EditorState.wordsCount = mainEditor.plugins.wordcount.body.getWordCount(); setNewEditorMetaHTML(v2EditorState.lastEdited, v2EditorState.wordsCount, tocConfig.includeToc); } function setNewEditorMetaHTML(lastEdited, wordsCount, includeToc) { var metaElement = $("#new-editor-meta-info"); if (!metaElement) { return; } var htmlToShowArray = []; if (lastEdited) { htmlToShowArray.push("Saved at " + getFriendlyModifiedTime(lastEdited) + ""); } if (wordsCount) { htmlToShowArray.push("" + wordsCount + " words"); } if (includeToc) { htmlToShowArray.push("TOC Added"); } metaElement.innerHTML = htmlToShowArray.join(" | "); } function setPreviewContent(html) { var previewElement = $("#preview-content"); if (!previewElement) return; previewElement.innerHTML = html; } function getPreviewContent() { var previewElement = $("#preview-content"); if (!previewElement) return ""; return previewElement.innerHTML; } function showV2Preview() { var html = mainEditor.getContent().trim(); if (html.length < 1) { alert("Please add some content for preview"); return; } if (new Blob([html]).size > 500000) { alert("Taxonomy content size is greater than 500kb, please reduce content"); return; } var contentHolder = $("#editor-v2-content"); var previewHolder = $("#editor-v2-preview"); if (!contentHolder || !previewHolder) return; toggleElementVisibility("#editor-v2-content"); toggleElementVisibility("#editor-v2-preview"); setPreviewContent(html); if ("en" == "en") { showSKEntities(html); } configureToCForPreview(); setTimeout(function() { EmbedBlot.displayEmbeds(); }, 1500); } function configureToCForPreview() { var tocCheckbox = document.getElementById("toc-preview"); if (!tocCheckbox) { return; } tocCheckbox.setAttribute("disabled", "disabled"); setTimeout(function() { if (mainEditor.dom.select("h2").length < 1) { tocConfig.includeToc = false; tocCheckbox.checked = false; } else { tocCheckbox.removeAttribute("disabled"); tocCheckbox.checked = tocConfig.includeToc; } toggleTableContent(tocConfig.includeToc); }, 1000); } function showV2Editor() { var contentHolder = $("#editor-v2-content"); var previewHolder = $("#editor-v2-preview"); if (!contentHolder || !previewHolder) return; removeClass(contentHolder, "hidden"); addClass(previewHolder, "hidden"); } async function showSKEntities(html) { toggleElementVisibility("#preview-page-loader"); var taxonomyType = "wiki_tag"; try { var entities = await getSKEntities(html, taxonomyType); var mSearchPayload = parseSKEntities(entities); var searchData = await getMSearchData(mSearchPayload, getTaxonomiesForMSearch(taxonomyType)); if (!Array.isArray(searchData) || searchData.length < 1) { toggleElementVisibility("#preview-page-loader"); return; } var filteredSearchData = filterSearchData(searchData); showSuggestions(filteredSearchData, html); } catch (e) { console.error(e); } } function filterSearchData(searchData) { var filtered = []; for (var index in searchData) { var singleData = searchData[index]; if (singleData && singleData.data && singleData.data.length > 0) { filtered.push(singleData); } } return filtered; } function getTaxonomiesForMSearch(taxonomyType) { if (taxonomyType === "wiki" || taxonomyType === "wiki_tag") { return ["wiki_tag"]; } return ["event", "team", "player"]; } async function getSKEntities(html, taxonomyType) { var url = " var payload = { "text": html } if (taxonomyType === "wiki" || taxonomyType === "wiki_tag") { var payload = { "text": html, "include_nouns": true } } var response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }); var data = await response.json(); return data; } async function getMSearchData(entities, taxonomiesToSearch) { var url = " var response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ "entities": entities, "taxonomies_to_search": taxonomiesToSearch || [] }) }); var data = await response.json(); return data; } function parseSKEntities(data) { var payload = []; if (data && data.entities) { data = data.entities; // Filter person, events and organizations data = data.filter(function(entity) { return entity.type.toUpperCase() === "PERSON" || entity.type.toUpperCase() === "EVENT" || entity.type.toUpperCase() === "ORGANISATION" || entity.type === "NOUN"; }); for (index in data) { payloadItem = {}; payloadItem["taxonomy"] = data[index].type.toUpperCase() === "PERSON" ? "player" : "event"; payloadItem["query"] = data[index].content; payload.push(payloadItem); } } return payload; } function showSuggestions(data, html) { if (data.length < 1) { return; } var resultHTML = ""; var htmlFormatted = stringToHTML(html); var allowedTags = ["P", "H2", "H3", "H4", "LI"]; var allTags = htmlFormatted.querySelectorAll("body > *"); var replacedKeywords = []; for (var tag of allTags) { var tagHTML = tag.outerHTML; var tagName = tag.tagName; if (tagName == "UL" || tagName == "OL") { tagName = "LI"; } if (allowedTags.includes(tagName) && tagHTML.includes("
</p>") { return ""; } processedData = processedData.replace(/
<\/p>/g, '
​
Comments are closed.