Skip to content
We Get Around Network
Quick StartCameras, platforms, training and more
#HTML

JS Code in MatterTag Links?

Started by frstbubble · · 3 replies · 281 views

Last reply

Companies in this topic:Matterport
🔖 Save🔔 Follow
#HTML

frstbubbleVeteranOP

Capture member
Back a couple of moths ago @Olivius posted this js code snippet:

<script>
function ChangeSize(){
var windowWidth = 500;
var windowHeight = 800;
var xPos = (screen.width/2) - (windowWidth/2);
var yPos = (screen.height/2) - (windowHeight/2);

window.resizeTo(windowWidth,windowHeight);
window.moveTo(xPos,yPos);
}
</script>

<body onload="ChangeSize()">
...

</body>

This snippet was to resize popup window for a Mattertag link. This was when it was in beta (ex. [link](http:www.the URLyou want)
)and it worked with that format within the tag.
They have changed the input method to make it more user-friendly. My question is, will the js code snippet still work?

malfieContributor

Access member
If he hasn't tried it already, I'm sure it's just a matter of time before @Metroplex360 will try it and be able to answer this question.

If they haven't changed anything on the code of these popup windows, I would imagine this would still work. But I read something about some limits in characters on the Mattertags, so perhaps it won't work???

I say, wait for the pro's to answer this one :-)

OliviusContributor

Access member
It look likes matterport change the way they open links in mattertag.

And argument &nt=tab or &nt=0 seems having no effect at all...

If they don't give us the option to choose the only option is creating a web page openiong a popup windows but it will be blocked by a lot of blocker plugin ...

not sure how to resolve this without matterport update.

frstbubbleVeteran

Capture member
Thanks for the quick response. Will have to wait and see it anything changes.

Loading…

Browse the forum →