Search found 709 matches

by Peter
Sun Jun 13, 2021 5:09 pm
Forum: Coding Questions
Topic: Plyr VideoPlayer error
Replies: 2
Views: 202

Re: Plyr VideoPlayer error

Always try to reduce the code to the bare minimum in case of problems. This works for me: Procedure Main() ! $("body").append("<div id='player' data-plyr-provider='youtube' data-plyr-embed-id='bTqVqk7FSmY'></div>"); ! const player = new Plyr('#player', {}); ! window.player = play...
by Peter
Sat Jun 12, 2021 7:54 pm
Forum: Coding Questions
Topic: problem on load ProgressBarJS
Replies: 3
Views: 109

Re: problem on load ProgressBarJS

Interesting library, by the way. Thanks for the tip! :) EnableExplicit Procedure Main() Protected GID OpenWindow(0, 0, 0, 220, 220, "ProgressBarJS", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ContainerGadget(0, 10, 10, 200, 200) : CloseGadgetList() GID = GadgetID(0) ! var myCircle ...
by Peter
Sat Jun 12, 2021 7:42 pm
Forum: Coding Questions
Topic: problem on load ProgressBarJS
Replies: 3
Views: 109

Re: problem on load ProgressBarJS

Your URL was wrong: EnableExplicit Procedure Main() Protected GID OpenWindow(0, 0, 0, 220, 220, "ProgressBarJS", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ContainerGadget(0, 10, 10, 200, 200) : CloseGadgetList() GID = GadgetID(0) ! var line = new ProgressBar.Line(v_gid.div); ! lin...
by Peter
Sat Jun 12, 2021 3:38 pm
Forum: Coding Questions
Topic: is there any way to animate gadget movement ?
Replies: 4
Views: 95

Re: is there any way to animate gadget movement ?

skinkairewalker wrote: Sat Jun 12, 2021 3:22 pmbut on this line > what means " so_cardevent " ? it shouldn't be f_cardevent, because cardevent() is a procedure?
so_cardevent$v_newx is the 'internal' JavaScript-Name of the static newX -Variable

-> so_[SB-Procedurename]$v_[SB-StaticVariablename}
by Peter
Sat Jun 12, 2021 1:00 pm
Forum: Coding Questions
Topic: is there any way to animate gadget movement ?
Replies: 4
Views: 95

Re: is there any way to animate gadget movement ?

You can use jQuery.animate(): Enumeration #Window #Card EndEnumeration Procedure CardEvent() Static newX = 10 Protected GID = GadgetID(#Card) If newX = 10 newX = WindowWidth(#Window) - GadgetWidth(#Card) - 10 Else newX = 10 EndIf ! $(v_gid.div).animate({ left: so_cardevent$v_newx + "px" },...
by Peter
Fri Jun 11, 2021 11:37 am
Forum: Coding Questions
Topic: flip cards animation
Replies: 2
Views: 93

Re: flip cards animation

Example-Code using jQuery Flip v1.1.1 : Enumeration #Window #ContainerGadget #Image1 #ImageGadget1 #Image2 #ImageGadget2 EndEnumeration Procedure LoadScriptCallback() OpenWindow(0, 0, 0, 300, 300, "", #PB_Window_ScreenCentered) ContainerGadget(#ContainerGadget, 0, 0, 300, 300) ImageGadget(...
by Peter
Sat Jun 05, 2021 11:10 am
Forum: Tricks 'n' Tips
Topic: Using Vuetify
Replies: 2
Views: 413

Using Vuetify

Hello, using Vuetify with SpiderBasic before I explain a lot that nobody is interested in: If you have any questions, please ask. ;) EnableExplicit Global Vue Procedure SetData(DataName.s, DataValue.s) ! v_vue.$data[v_dataname] = v_datavalue; EndProcedure Procedure.s GetTemplate() Protected Template...
by Peter
Fri Jun 04, 2021 8:07 am
Forum: Tricks 'n' Tips
Topic: Sidebar
Replies: 1
Views: 99

Sidebar

Hello, this is a simple example who to implement a Sidebar with SpiderBasic: EnableExplicit Enumeration #Sidebar #ControlWindow #ControlWindow_cmdSlideIn #ControlWindow_cmdSlideOut EndEnumeration Procedure SlideIn(Window) Protected WID = WindowID(Window) ! $(v_wid.element).animate({ ! left: 0 ! }); ...
by Peter
Wed Jun 02, 2021 8:48 pm
Forum: Javascript
Topic: What am I doing wrong when importing a JS script?
Replies: 11
Views: 2389

Re: What am I doing wrong when importing a JS script?

I have found that a simple

Code: Select all

! define = null;
works the same way.

However, I don't know if there are side effects. Who knows more?

Thanks in advance ... Peter
by Peter
Thu May 27, 2021 8:47 pm
Forum: Javascript
Topic: What am I doing wrong when importing a JS script?
Replies: 11
Views: 2389

Re: What am I doing wrong when importing a JS script?

the.weavster wrote: Thu May 27, 2021 4:47 pmI have found how to import Metro UI. [...]
Kudos! Thank you for this elegant code snippet. This opens up a new world for us SpiderBasic programmers. Image

Greetings ... Peter