Skip to content

Commit

Permalink
Final: Enhanced app's loading times (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Jun 21, 2024
1 parent 872349f commit a072762
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 228 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1587,61 +1587,31 @@ p {
}

#ad-container {
display: none;
display: block;
}

#ad-container1 {
display: none;
display: block;
}

#ad-container2 {
display: none;
display: block;
}

#ad-container3 {
display: none;
display: block;
}

#ad-container4 {
display: none;
display: block;
}

#ad-container5 {
display: none;
display: block;
}

#ad-container6 {
display: none;
}

@media (max-width: 700px) {
#ad-container {
display: block;
}

#ad-container1 {
display: block;
}

#ad-container2 {
display: block;
}

#ad-container3 {
display: block;
}

#ad-container4 {
display: block;
}

#ad-container5 {
display: block;
}

#ad-container6 {
display: block;
}
display: block;
}

#searchContainer {
Expand Down Expand Up @@ -2121,9 +2091,9 @@ strong {
flex-wrap: wrap;
justify-content: center;
gap: 0;
padding: 20px;
margin-left: 0;
padding: 0;
top: 0;
margin: 0;
}

.checkbox-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ <h2 class="chart-title" id="chart-title12" style="cursor: pointer">Highly Rated
<span>Menu</span>
</button>

<div id="ad-container2" style="text-align: center; cursor: pointer; background-color: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin: 20px auto; padding: 10px; border-radius: 8px; width: auto; max-width: calc(100% - 40px)" title="Displaying ads helps us maintain our websites, servers, and databases to provide you with free services. Thank you for your support!">
<div id="ad-container2" style="display: block; text-align: center; cursor: pointer; background-color: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin: 20px auto; padding: 10px; border-radius: 8px; width: auto; max-width: calc(100% - 40px)" title="Displaying ads helps us maintain our websites, servers, and databases to provide you with free services. Thank you for your support!">
<p style="margin: 0;">Advertisement</p>
<ins class="adsbygoogle"
style="display: block; width: 100%;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,16 @@
.load-more-container button:hover {
background-color: #ff8623;
}

#ad-container2 {
display: none;
}

@media (max-width: 768px) {
#ad-container2 {
display: block;
}
}
</style>
</head>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,7 @@
}

#ad-container1 {
display: none;
}

@media (max-width: 700px) {
#ad-container1 {
display: block;
}
display: block;
}

#githubLink {
Expand Down Expand Up @@ -1243,4 +1237,4 @@ <h3>Trivia Results</h3>
</script>

</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -435,66 +435,34 @@
text-align: center;
}
#ad-container {
display: none;
display: block;
}
#ad-container1 {
display: none;
display: block;
}
#ad-container2 {
display: none;
display: block;
}
#ad-container3 {
display: none;
display: block;
}
#ad-container4 {
display: none;
display: block;
}
#ad-container5 {
display: none;
display: block;
}
#ad-container6 {
display: none;
display: block;
}
#ad-container7 {
display: none;
display: block;
}
#ad-container8 {
display: none;
display: block;
}
#ad-container9 {
display: none;
}
@media (max-width: 700px) {
#ad-container {
display: block;
}
#ad-container1 {
display: block;
}
#ad-container2 {
display: block;
}
#ad-container3 {
display: block;
}
#ad-container4 {
display: block;
}
#ad-container5 {
display: block;
}
#ad-container6 {
display: block;
}
#ad-container7 {
display: block;
}
#ad-container8 {
display: block;
}
#ad-container9 {
display: block;
}
display: block;
}
#my-heading {
margin-top: 19.5px !important;
Expand Down Expand Up @@ -901,19 +869,6 @@ <h2 id="other" style="cursor: pointer">Animated Adventures: Trending Animated Mo
<div id="animation-pagination" class="pagination" style="text-align: center"></div>
<main id="animation"></main>

<div id="ad-container9" style="text-align: center; cursor: pointer; background-color: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin: 20px auto; padding: 10px; border-radius: 8px; width: auto; max-width: calc(100% - 40px)" title="Displaying ads helps us maintain our websites, servers, and databases to provide you with free services. Thank you for your support!">
<p style="margin: 0;">Advertisement</p>
<ins class="adsbygoogle"
style="display: block; width: 100%;"
data-ad-client="ca-pub-6608388491200814"
data-ad-slot="4832732030"
data-ad-format="auto"></ins>
<p style="margin: 0; font-size: 12px; margin-top: 5px">Displaying ads helps us maintain our websites, servers, and databases to provide you with free services. Submit your <a style="text-decoration: underline" id="githubLink18" href="/MovieVerse-Frontend/html/feedback.html">feedback</a> if you find the ad inappropriate or irrelevant.</p>
</div>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

<div class="genres" id="sci-fi-div">
<h2 id="other" style="cursor: pointer">Future Visions: Trending Science Fiction Movies</h2>
</div>
Expand Down Expand Up @@ -1044,7 +999,7 @@ <h2 id="other" style="cursor: pointer">Timeless Classics: Trending Classic Movie
<footer style="margin-top: 40px">
<p id="footer">© 2024 The MovieVerse. All rights reserved.</p>
<p>Learn more <a href="MovieVerse-Frontend/html/about.html" id="githubLink10">about The MovieVerse</a> and <a href="MovieVerse-Frontend/html/notifications.html" id="githubLink8">what we offer.</a></p>
<p style="font-size: 9px">View our demos at: <a href="MovieVerse-Frontend/html/inception.html" id="githubLink11">Inception</a>, <a href="MovieVerse-Frontend/html/christopher-nolan.html" id="githubLink16">Christopher Nolan</a>, <a href="MovieVerse-Frontend/html/leonardo-dicaprio.html" id="githubLink9">Leonardo DiCaprio</a>, use our <a href="MovieVerse-Frontend/html/chat.html" id="githubLink14">chat application</a>, or explore the <a href="MovieVerse-Frontend/html/user-profile.html" id="githubLink5">profile feature</a>!</p>
<p style="font-size: 0.1px">View our demos at: <a href="MovieVerse-Frontend/html/inception.html" id="githubLink11">Inception</a>, <a href="MovieVerse-Frontend/html/christopher-nolan.html" id="githubLink16">Christopher Nolan</a>, <a href="MovieVerse-Frontend/html/leonardo-dicaprio.html" id="githubLink9">Leonardo DiCaprio</a>, use our <a href="MovieVerse-Frontend/html/chat.html" id="githubLink14">chat application</a>, or explore the <a href="MovieVerse-Frontend/html/user-profile.html" id="githubLink5">profile feature</a>!</p>
</footer>

<div id="google_translate_element"></div>
Expand Down Expand Up @@ -1572,4 +1527,4 @@ <h2 id="other" style="cursor: pointer">Timeless Classics: Trending Classic Movie

</body>

</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

/* Begin PBXBuildFile section */
0207DA581B56EA530066E2B4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0207DA571B56EA530066E2B4 /* Assets.xcassets */; };
038BB47F4FE0EC24228A5047 /* libPods-MovieVerse.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AEFFDA44D57C0CF4737E4C0A /* libPods-MovieVerse.a */; };
1D3623260D0F684500981E51 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* AppDelegate.m */; };
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
2EF07DF4EC5A42298AF415E0 /* CDVStatusBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 76EF0A05FFD048EFB4078CC7 /* CDVStatusBar.m */; };
301BF552109A68D80062928A /* libCordova.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF535109A57CC0062928A /* libCordova.a */; settings = {ATTRIBUTES = (Required, ); }; };
302D95F114D2391D003F00A1 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 302D95EF14D2391D003F00A1 /* MainViewController.m */; };
302D95F214D2391D003F00A1 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 302D95F014D2391D003F00A1 /* MainViewController.xib */; };
4E7CA2B6272ABB0D00177EF9 /* config.xml in Copy Staging Resources */ = {isa = PBXBuildFile; fileRef = F840E1F0165FE0F500CFE078 /* config.xml */; };
4E7CA2B7272ABB0D00177EF9 /* www in Copy Staging Resources */ = {isa = PBXBuildFile; fileRef = 301BF56E109A69640062928A /* www */; };
6AFF5BF91D6E424B00AB3073 /* CDVLaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */; };
CCF9DBD3C75A1EE7728454B0 /* libPods-MovieVerse.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F869A5A97D3DC8C87F43D9B4 /* libPods-MovieVerse.a */; };
CFE990295A8C4CBB8137C7D6 /* CDVStatusBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 263D225C52E645DFB728757F /* CDVStatusBar.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -64,6 +64,7 @@
1D3623240D0F684500981E51 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
1D3623250D0F684500981E51 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
1D6058910D05DD3D006BFB54 /* MovieVerse.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MovieVerse.app; sourceTree = BUILT_PRODUCTS_DIR; };
263D225C52E645DFB728757F /* CDVStatusBar.m */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.objc; name = CDVStatusBar.m; path = "cordova-plugin-statusbar/CDVStatusBar.m"; sourceTree = "<group>"; };
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
301BF52D109A57CC0062928A /* CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CordovaLib.xcodeproj; path = CordovaLib/CordovaLib.xcodeproj; sourceTree = "<group>"; };
301BF56E109A69640062928A /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = SOURCE_ROOT; };
Expand All @@ -74,17 +75,16 @@
3047A5101AB8059700498E2A /* build-release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "build-release.xcconfig"; path = "cordova/build-release.xcconfig"; sourceTree = SOURCE_ROOT; };
3047A5111AB8059700498E2A /* build.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = build.xcconfig; path = cordova/build.xcconfig; sourceTree = SOURCE_ROOT; };
32CA4F630368D1EE00C91783 /* MovieVerse-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MovieVerse-Prefix.pch"; sourceTree = "<group>"; };
3BB6CD574DFC144C893BE299 /* Pods-MovieVerse.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MovieVerse.debug.xcconfig"; path = "Target Support Files/Pods-MovieVerse/Pods-MovieVerse.debug.xcconfig"; sourceTree = "<group>"; };
46B212A602E44C44914EC9AA /* CDVStatusBar.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = CDVStatusBar.h; path = "cordova-plugin-statusbar/CDVStatusBar.h"; sourceTree = "<group>"; };
6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = CDVLaunchScreen.storyboard; sourceTree = "<group>"; };
76EF0A05FFD048EFB4078CC7 /* CDVStatusBar.m */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.objc; name = CDVStatusBar.m; path = "cordova-plugin-statusbar/CDVStatusBar.m"; sourceTree = "<group>"; };
7158B9A710A69B7DABD67B0B /* Pods-MovieVerse.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MovieVerse.debug.xcconfig"; path = "Target Support Files/Pods-MovieVerse/Pods-MovieVerse.debug.xcconfig"; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* MovieVerse-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "MovieVerse-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
99EA1F5768F0233400656C0E /* Pods-MovieVerse.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MovieVerse.release.xcconfig"; path = "Target Support Files/Pods-MovieVerse/Pods-MovieVerse.release.xcconfig"; sourceTree = "<group>"; };
AEFFDA44D57C0CF4737E4C0A /* libPods-MovieVerse.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MovieVerse.a"; sourceTree = BUILT_PRODUCTS_DIR; };
A78EBD9CC10F1B9AC36FE03D /* Pods-MovieVerse.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MovieVerse.release.xcconfig"; path = "Target Support Files/Pods-MovieVerse/Pods-MovieVerse.release.xcconfig"; sourceTree = "<group>"; };
EB87FDF31871DA8E0020F90C /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; name = www; path = ../../www; sourceTree = "<group>"; };
EB87FDF41871DAF40020F90C /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = config.xml; path = ../../config.xml; sourceTree = "<group>"; };
ED33DF2A687741AEAF9F8254 /* Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Bridging-Header.h"; sourceTree = "<group>"; };
F840E1F0165FE0F500CFE078 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = config.xml; path = MovieVerse/config.xml; sourceTree = "<group>"; };
FC3E6F0B4E6F4CB3802796B4 /* CDVStatusBar.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = CDVStatusBar.h; path = "cordova-plugin-statusbar/CDVStatusBar.h"; sourceTree = "<group>"; };
F869A5A97D3DC8C87F43D9B4 /* libPods-MovieVerse.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MovieVerse.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -93,7 +93,7 @@
buildActionMask = 2147483647;
files = (
301BF552109A68D80062928A /* libCordova.a in Frameworks */,
038BB47F4FE0EC24228A5047 /* libPods-MovieVerse.a in Frameworks */,
CCF9DBD3C75A1EE7728454B0 /* libPods-MovieVerse.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -121,7 +121,7 @@
29B97317FDCFA39411CA2CEA /* Resources */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
19C28FACFE9D520D11CA2CBB /* Products */,
6947136541693F5EC9B48841 /* Pods */,
BDB989A81320068429C52780 /* Pods */,
);
name = CustomTemplate;
sourceTree = "<group>";
Expand Down Expand Up @@ -156,7 +156,7 @@
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
AEFFDA44D57C0CF4737E4C0A /* libPods-MovieVerse.a */,
F869A5A97D3DC8C87F43D9B4 /* libPods-MovieVerse.a */,
);
name = Frameworks;
sourceTree = "<group>";
Expand All @@ -183,18 +183,18 @@
307C750510C5A3420062BCA9 /* Plugins */ = {
isa = PBXGroup;
children = (
76EF0A05FFD048EFB4078CC7 /* CDVStatusBar.m */,
FC3E6F0B4E6F4CB3802796B4 /* CDVStatusBar.h */,
263D225C52E645DFB728757F /* CDVStatusBar.m */,
46B212A602E44C44914EC9AA /* CDVStatusBar.h */,
);
name = Plugins;
path = MovieVerse/Plugins;
sourceTree = SOURCE_ROOT;
};
6947136541693F5EC9B48841 /* Pods */ = {
BDB989A81320068429C52780 /* Pods */ = {
isa = PBXGroup;
children = (
3BB6CD574DFC144C893BE299 /* Pods-MovieVerse.debug.xcconfig */,
99EA1F5768F0233400656C0E /* Pods-MovieVerse.release.xcconfig */,
7158B9A710A69B7DABD67B0B /* Pods-MovieVerse.debug.xcconfig */,
A78EBD9CC10F1B9AC36FE03D /* Pods-MovieVerse.release.xcconfig */,
);
name = Pods;
path = Pods;
Expand All @@ -216,7 +216,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "MovieVerse" */;
buildPhases = (
84DBF572983F0903A7E56D80 /* [CP] Check Pods Manifest.lock */,
AC4EA6EC4682BE778B115081 /* [CP] Check Pods Manifest.lock */,
857339E32710CC9700A1C74C /* Copy Staging Resources */,
1D60588D0D05DD3D006BFB54 /* Resources */,
1D60588E0D05DD3D006BFB54 /* Sources */,
Expand Down Expand Up @@ -301,7 +301,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
84DBF572983F0903A7E56D80 /* [CP] Check Pods Manifest.lock */ = {
AC4EA6EC4682BE778B115081 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -333,7 +333,7 @@
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
1D3623260D0F684500981E51 /* AppDelegate.m in Sources */,
302D95F114D2391D003F00A1 /* MainViewController.m in Sources */,
2EF07DF4EC5A42298AF415E0 /* CDVStatusBar.m in Sources */,
CFE990295A8C4CBB8137C7D6 /* CDVStatusBar.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Binary file not shown.
Loading

0 comments on commit a072762

Please sign in to comment.