Skip to content

Commit 7dbee47

Browse files
debug
1 parent f8a0707 commit 7dbee47

File tree

7 files changed

+30
-10
lines changed

7 files changed

+30
-10
lines changed

src/.VisualScript.py.swp

20 KB
Binary file not shown.

src/.VisualScript.py.un~

4.31 KB
Binary file not shown.

src/.example.vs.un~

2.16 KB
Binary file not shown.

src/VisualScript.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def returnMean(list):
159159
sortedlist = sorted(list)
160160
meannum = sum(sortedlist) / len(sortedlist)
161161
return meannum
162-
def webPageStatic(title=, header, cssfile=None, filename="index.html", content, contentt="", contenttr="", contentb="", contenth="", contentcb=""):
162+
def webPageStatic(title=, header, cssfile=None, filename="index.html", content, contentt="", contenttr="", contentb="", contenth="", contentcb="", cb="0"):
163163
filenamecustom = filename
164164
structure = f"""
165165
<!DOCTOTYPE html>
@@ -236,9 +236,9 @@ def webPageLinks(filename, link, textCB):
236236
html.append(structure)
237237
def webPageSound(filename, soundfileCB):
238238
structure = """
239-
<audio>
239+
<audio>
240240
<source src={soundfileCB} type="audio/mpeg">
241-
</audio>
241+
</audio>
242242
"""
243243
with open(filename, "a") as html:
244244
html.append(structure)
@@ -260,7 +260,7 @@ def webPageclose(filename):
260260
"""
261261
with open(filename, "a") as html:
262262
html.append(structure)
263-
263+
264264

265265
def webPageStart(filename):
266266
# opens html files only

src/VisualScript.py~

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,31 @@ def process_code(file):
236236
html.append(structure)
237237
def webPageSound(filename, soundfileCB):
238238
structure = """
239-
<audio>
240-
<source src={soundfileCB} type="audio/mpeg">
241-
</audio>
239+
<audio>
240+
<source src={soundfileCB} type="audio/mpeg">
241+
</audio>
242242
"""
243243
with open(filename, "a") as html:
244244
html.append(structure)
245-
246-
245+
def webPageBGsound(filename, soundfileCB):
246+
structure = f"""
247+
\n<bgsound src={soundfileCB}/>\n
248+
"""
249+
with open(filename, "a") as html:
250+
html.append(structure)
251+
def webPageBodyClosure(filename):
252+
structure = f"""
253+
</body>
254+
"""
255+
with open(filename, "a") as html:
256+
html.append(structure)
257+
def webPageclose(filename):
258+
structure = f"""
259+
</html>
260+
"""
261+
with open(filename, "a") as html:
262+
html.append(structure)
263+
247264

248265
def webPageStart(filename):
249266
# opens html files only

src/example.vs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ log(x)
55
function print():
66
log("hello world")
77
content = "john"
8-
webPage("steve", "tim", "timmy")
8+
webPage("main.html")
9+
webPageStyles("styles.css")

src/example.vs~

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ x = returnMedian(list, "y")
44
log(x)
55
function print():
66
log("hello world")
7+
content = "john"
8+
webPage("steve", "tim", "timmy")

0 commit comments

Comments
 (0)