0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-05-18 08:58:31 +03:00

Removed the pathfinding and pictureTag from core

This commit is contained in:
Alexander Yakovlev 2016-09-16 19:57:45 +07:00
parent 375ee4c0f8
commit 23e2be646f
2 changed files with 1 additions and 27 deletions

View file

@ -1,6 +1,6 @@
{
"name": "salet",
"version": "1.4.14",
"version": "1.4.15",
"description": "A general client-side framework for cybertext interactive fiction games.",
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
"homepage": "http://salet.oreolek.ru",

View file

@ -261,31 +261,5 @@ class SaletView
@showBlock(".ways #ways_hint")
else
@hideBlock(".ways #ways_hint")
document.getElementById("ways").innerHTML = content
min = Infinity
min_key = []
for node in distances
if node.distance < min
min = node.distance
min_key = [node.key]
if node.distance == min
min_key.push(node.key)
if min < Infinity
for node in min_key
waylink = document.getElementById("waylink-#{node}")
if waylink
addClass(waylink, "destination")
pictureTag: (picture) ->
extension = picture.substr((~-picture.lastIndexOf(".") >>> 0) + 2)
if (extension == "webm")
return """
<video src="#{picture}" controls>
Your browser does not support the video tag for some reason.
You won't be able to view this video in this browser.
</video>
"""
return "<img class='img-responsive' src='#{picture}' alt='Room illustration'>"
cycleLink: (content) ->
return "<a href='./_replacer_cyclewriter' class='cycle' id='cyclewriter'>#{content}</a>"