bcsupport.ru Open in urlscan Pro
92.242.41.77  Public Scan

URL: https://bcsupport.ru:7443/projects/PMP5293/repos/cordova-android/browse/test/assets/www/main.js?at=13ef58a5bb5854c6ce5c96a...
Submission: On July 15 via manual from CA — Scanned from CA

Form analysis 1 forms found in the DOM

GET /plugins/servlet/search

<form class="aui-quicksearch" method="GET" action="/plugins/servlet/search">
  <div class="quick-search-trigger"><label class="assistive" for="quick-search">Search for code, commits or repositories</label><input id="quick-search" name="q" type="text" autocomplete="off" placeholder="Search for code, commits or repositories…"
      aria-activedescendant="" aria-autocomplete="both" aria-busy="false" aria-controls="quick-search-dialog" aria-expanded="false" aria-haspopup="true" role="combobox"></div>
</form>

Text Content

 * Skip to sidebar navigation
 * Skip to content

Linked Applications
 * Borlas Service Desk
 * Confluence
 * BitBucket
 * Atlassian Bamboo

 * Projects
 * Repositories

 * Search for code, commits or repositories
 * Help
    * Online help
    * Learn Git
    * Welcome to Bitbucket
    * Keyboard shortcuts
    * What's new
    * Community

 * Alerts
 * Log In

 1. МТОиР


CORDOVA-ANDROID

Public
Actions
 * Clone
 * Compare

HTTP


Learn more about cloning repositories

You have read-only access







Navigation
 * Source
 * Commits
 * Branches
 * Forks


 1. МТОиР
 2. cordova-android


SOURCE

Commit13ef58a5bb5

Branch actions
cordova-android/test/assets/www/main.js

Joe Bowser authored c33f768570c05 May 2012
Blame
Raw file
Source viewDiff to previous
History

5.17 KB
 
1

/*

2

       Licensed to the Apache Software Foundation (ASF) under one

3

       or more contributor license agreements.  See the NOTICE file

4

       distributed with this work for additional information

5

       regarding copyright ownership.  The ASF licenses this file

6

       to you under the Apache License, Version 2.0 (the

7

       "License"); you may not use this file except in compliance

8

       with the License.  You may obtain a copy of the License at

9

​

10

         http://www.apache.org/licenses/LICENSE-2.0

11

​

12

       Unless required by applicable law or agreed to in writing,

13

       software distributed under the License is distributed on an

14

       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

15

       KIND, either express or implied.  See the License for the

16

       specific language governing permissions and limitations

17

       under the License.

18

*/

19

​

20

var deviceInfo = function() {

21

    document.getElementById("platform").innerHTML = device.platform;

22

    document.getElementById("version").innerHTML = device.version;

23

    document.getElementById("uuid").innerHTML = device.uuid;

24

    document.getElementById("name").innerHTML = device.name;

25

    document.getElementById("width").innerHTML = screen.width;

26

    document.getElementById("height").innerHTML = screen.height;

27

    document.getElementById("colorDepth").innerHTML = screen.colorDepth;

28

    var el = document.getElementById("cordova");

29

    if (el) {

30

        el.innerHTML = device.cordova;

31

    }

32

};

33

​

34

var getLocation = function() {

35

    var suc = function(p) {

36

        alert(p.coords.latitude + " " + p.coords.longitude);

37

    };

38

    var locFail = function() {

39

    };

40

    navigator.geolocation.getCurrentPosition(suc, locFail);

41

};

42

​

43

var beep = function() {

44

    navigator.notification.beep(2);

45

};

46

​

47

var vibrate = function() {

48

    navigator.notification.vibrate(0);

49

};

50

​

51

function roundNumber(num) {

52

    var dec = 3;

53

    var result = Math.round(num * Math.pow(10, dec)) / Math.pow(10, dec);

54

    return result;

55

}

56

​

57

var accelerationWatch = null;

58

​

59

function updateAcceleration(a) {

60

    document.getElementById('x').innerHTML = roundNumber(a.x);

61

    document.getElementById('y').innerHTML = roundNumber(a.y);

62

    document.getElementById('z').innerHTML = roundNumber(a.z);

63

}

64

​

65

var toggleAccel = function() {

66

    if (accelerationWatch !== null) {

67

        navigator.accelerometer.clearWatch(accelerationWatch);

68

        updateAcceleration({

69

            x : "",

70

            y : "",

71

            z : ""

72

        });

73

        accelerationWatch = null;

74

    } else {

75

        var options = {};

76

        options.frequency = 1000;

77

        accelerationWatch = navigator.accelerometer.watchAcceleration(

78

                updateAcceleration, function(ex) {

79

                    alert("accel fail (" + ex.name + ": " + ex.message + ")");

80

                }, options);

81

    }

82

};

83

​

84

var preventBehavior = function(e) {

85

    e.preventDefault();

86

};

87

​

88

function dump_pic(data) {

89

    var viewport = document.getElementById('viewport');

90

    console.log(data);

91

    viewport.style.display = "";

92

    viewport.style.position = "absolute";

93

    viewport.style.top = "10px";

94

    viewport.style.left = "10px";

95

    document.getElementById("test_img").src = "data:image/jpeg;base64," + data;

96

}

97

​

98

function fail(msg) {

99

    alert(msg);

100

}

101

​

102

function show_pic() {

103

    navigator.camera.getPicture(dump_pic, fail, {

104

        quality : 50

105

    });

106

}

107

​

108

function close() {

109

    var viewport = document.getElementById('viewport');

110

    viewport.style.position = "relative";

111

    viewport.style.display = "none";

112

}

113

​

114

function contacts_success(contacts) {

115

    alert(contacts.length

116

            + ' contacts returned.'

117

            + (contacts[2] && contacts[2].name ? (' Third contact is ' + contacts[2].name.formatted)



 * Git repository management for enterprise teams powered by Atlassian Bitbucket

 * Atlassian Bitbucket v7.17.13
 * Documentation
 * Request a feature
 * About
 * Contact Atlassian

Atlassian


Everything looks good. We'll let you know here if there's anything you should
know about.