Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top