Finish Munzee integration

master
Skylar Ittner 8 years ago
parent 0347247dbe
commit e659b0fe83

@ -15,14 +15,19 @@
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<iframe id="munzeeoauth" src="about:blank"></iframe> <iframe id="munzeeoauth" src="about:blank" style="background-color: white;"></iframe>
<script> <script>
setTimeout(function () {
$('#munzeeoauth').attr('src', 'https://api.munzee.com/oauth?response_type=code&client_id=' $('#munzeeoauth').attr('src', 'https://api.munzee.com/oauth?response_type=code&client_id='
+ MUNZEE_CLIENT_ID + MUNZEE_CLIENT_ID
+ '&redirect_uri=' + '&redirect_uri='
+ MUNZEE_REDIRECT + MUNZEE_REDIRECT
+ '&scope=read');// capture_light'); + '&scope=read capture_light');
}, 1000);
$("#munzeeoauth").load(function () {
alert(this.contentWindow.location);
if (this.contentWindow.location == "about:closeme") {
openscreen("home");
}
});
</script> </script>

@ -23,11 +23,11 @@
<div class='list-group-item' onclick='openRules()'> <div class='list-group-item' onclick='openRules()'>
Show Rules Show Rules
</div> </div>
<!--<div class='list-group-item' onclick='openscreen("munzeelink")'> <div class='list-group-item' onclick='openscreen("munzeelink")'>
Link with Munzee account Link with Munzee account
<br /> <br />
<span class="small">When you link a Munzee account, any Munzee QR codes you scan will be automatically captured in Munzee as well.</span> <span class="small">When you link a Munzee account, any Munzee QR codes you scan will be automatically captured in Munzee as well.</span>
</div>--> </div>
<div class='list-group-item' onclick='askLogout()'> <div class='list-group-item' onclick='askLogout()'>
Logout from app Logout from app
</div> </div>