Skip to content

Conversation

@arkumish
Copy link

@arkumish arkumish commented Jan 5, 2019

Add the feature of dark and light mode in main page.

SCREENSHOTS

                                       EXISTING PAGE

0geo

                                        NEW PAGE

LIGHT MODE :-

1geo

DARK MODE :-

2geo

Copy link

@sakshee-19 sakshee-19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix some minor issues.

margin: 4px 2px;
cursor: pointer;
border-radius: 50%;
} No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add EOF.

let out = document.getElementById("out")
let flag=0


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add empty lines.

js/main.js Outdated
}



Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra unnecessary empty lines.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your reviews @sakshee-19

Copy link

@sakshee-19 sakshee-19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash your commits and provide a preview link to test the changes.

@arkumish
Copy link
Author

arkumish commented Jan 6, 2019

preview link : https://armish24.github.io/geolocation/

js/main.js Outdated
{document.body.style.background = 'black';
document.getElementById("title").style.color = 'white';
document.getElementById("myButton1").value="Light";
document.getElementById("myButton1").style.background = 'white';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you intend this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I modified the code, to minimize size of code .Kindly have a look

</head>
<body>
<h2>Geo locator to faciliate easy integration of location data</h2>
<input type="button" value="Dark" id="myButton1" onclick="changeBodyBg();"></input>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls intend correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants