Index resets when I run app

I have a index.html and it has my own stuff in it (It isn’t a template). But when ever I do

ionic run android --device

It builds it then deploys it in my phone but it is the blank template that I started out my project with. I guess it just replaces my own stuff I wrote in it. Could it be that since I don’t use the Ionic css framework and use my own framework that it does this? Every script is still linked in.

Here is MY code that I wrote at first

Is there a way to keep my stuff without it replacing it? Thanks.

Which file are you editing?
Also: Are you really using Ionic for anything? Your code looks like you replaced almost everything by custom code and jQuery. Maybe just use pure Cordova to build your app if you don’t need and use Ionic?