Search…

X3 Photo Gallery Support Forums

Search…
 
ckishappy
Topic Author
Posts: 20
Joined: 21 May 2016, 06:07

www.polaschin.ch

18 Aug 2016, 16:11

Let me know what you think..On the todo list (code for waiting on some boring rainy days to have enough time for this) is to work more with background pictures and to add English/French/Italian as language as well. Br, Chris
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: www.polaschin.ch

19 Aug 2016, 00:54

Good work, and website is nice and fast!

I have a tip for you: On your start page, you have a few <button> tags at the bottom, that use javascript for the links. When you add the links by javascript, they are not capable of using X3's internal AJAX page-loading method, and will load the entire page instead. You can add the exact same style buttons like this instead:
Code
<a class="button" href="/Verfuegbarkeit">Verfügbarkeit</a>
Link transitions will be smoother!
 
ckishappy
Topic Author
Posts: 20
Joined: 21 May 2016, 06:07

Re: www.polaschin.ch

19 Aug 2016, 07:28

Thanks - I changed the buttons, slick approach, love it!  :smile:

I don't like the javascript / embedding for the web calendar (on the page http://polaschin.ch/Verfuegbarkeit/) btw too much:

<script data-tockify-script="embed" src="https://public.tockify.com/browser/embed.js"></script>

<div data-tockify-component="mini" data-tockify-calendar="polaschin.ch"></div>

It works somehow but it feels clumsy. Any advise? 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: www.polaschin.ch

19 Aug 2016, 10:13

ckishappy wrote:It works somehow but it feels clumsy. Any advise? 
I would say, if it's not broken, don't try to fix it.

X3 is an AJAX application, which loads partial page content  for a faster and smoother experience. Because of this, it can be complicated to work with 3rd party scripts, and the simple solution is often to add the scripts to content like you have done ... if it works, then there is really nothing wrong with that. There are hooks in X3, for example x3_load_page(){ ... }, which can be used in custom javascript settings section to trigger specific custom functions, for specific pages, but this often requires an understanding of the 3rd party javascript and how to trigger/initiate it. It would also allow you to for example add the script SRC to <head>, instead of injecting directly into the content ... More aesthetic, and for some plugins, it is necessary, but not always worth the hassle if it already works.
 
ckishappy
Topic Author
Posts: 20
Joined: 21 May 2016, 06:07

Re: www.polaschin.ch

19 Aug 2016, 13:21

Got it, I leave it as is for the time being -Thanks for your advise! 
 
ckishappy
Topic Author
Posts: 20
Joined: 21 May 2016, 06:07

Re: www.polaschin.ch

09 Oct 2016, 10:13

polaschin.ch got upgraded to V0.19 and I did also the website to https and did update the tables a bit, added the cool icons which I find very cool!