Adding Mobile-friendly Meta Tags to the javascript output in the Processing IDE

58 views Asked by At

I'm trying to make my processing app a little more mobile-friendly, which isn't too difficult with these meta tags that I've found.

<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<meta name="apple-mobile-web-app-capable" content="yes" />

However, these require copying into the <head> of the generated webpage that the Processing IDE spits out. Every. Single. Time.

Is there an easier way to do this that I'm just not seeing? I looked into the @pjs directives but found nothing. I'm worried I might have to resort to adding the metatags with jquery after the sketch loads.

1

There are 1 answers

0
Andrew T. On BEST ANSWER

I figured it out. All I had to do was use a custom html template (Javascript > Start Custom Template) and add it there. Simple.